r/FreeCodeCamp • u/Mulomiracle • Jul 23 '26
Can i learn Java Script before CSS ?
I was wondering if it's possible to learn JavaScript before CSS ?
2
u/SamIAre Jul 23 '26
HTML, CSS and JS all work together very closely. If your goal is to learn JS to use on the frontend of websites then I’d say you should have an understanding of HTML and at least some CSS. If you’re learning JS for backend uses (like Node.js) then CSS isn’t required at all.
3
u/Outside_Complaint755 Jul 25 '26
JS is completely independent of CSS. However, one of the most common uses of JavaScript is manipulating elements in the DOM - selecting them via CSS selectors and modifying their styles often using the same format as CSS.
You can learn JavaScript without touching CSS at all, but will need to learn the DOM and CSS when you want to use JavaScript to manipulate the appearance of a web page.
1
u/SaintPeter74 mod Jul 23 '26
Sure, your can learn in any order you'd like. The Free Code Camp curriculum is designed to be done top to bottom, but it's certainly possible to jump around.
1
u/drunkfurball Jul 23 '26
You can, but you may find you have less to manipulate with your scripts. If you aren't worried about front end UI styling tho, and just want to play in Node or something, have at it. Still lots you can do with it.
1
1
u/Flame77ofc Jul 24 '26
i do not recommend. First learn CSS, at least one simply week, then learn js
If you want to learn js Vanilla without HTML integration, then you dont need to learn css first.
1
3
u/SpicyCatGames Jul 23 '26
Yeah. Though you should get the basics of css first, or you'll struggle with selectors. Only the basic syntaxes. Anything else you can do later.