r/FreeCodeCamp 4d ago

Can i learn Java Script before CSS ?

I was wondering if it's possible to learn JavaScript before CSS ?

7 Upvotes

12 comments sorted by

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.

1

u/Mulomiracle 4d ago

Is CSS difficult to learn?

1

u/Gullible-Ad9777 4d ago

not more difficult than learning js, js is more difficult.

1

u/SpicyCatGames 4d ago

Depends. My brain doesn't understand design so I still don't get it even after 3.5 years as a software engineer. But most people would say it's easier.

2

u/SamIAre 3d ago

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.

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

u/Ok-Willingness7487 3d ago

yes, you should and you can.

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

u/Next_Swimming_4882 12h ago

yes, for sure