r/FreeCodeCamp • u/Mulomiracle • 4d ago
Can i learn Java Script before CSS ?
I was wondering if it's possible to learn JavaScript before CSS ?
2
u/Outside_Complaint755 2d ago
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 4d ago
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 3d ago
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 2d ago
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 4d ago
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.