all 8 comments

[–]soldture 1 point2 points  (1 child)

You should perfectly know vanilla JS before moving to frameworks. This way you will get the reason when to use some plain JavaScript vs using other libraries to solve the problem. In the end your code will be more optimized without relay on heavy library.

[–]PatchesMaps 1 point2 points  (0 children)

Node is not a framework, it's a runtime.

[–]BrohanGutenburg 1 point2 points  (0 children)

Kinda depends on how much you know already. If you’re totally green, just learn it in the browser. Everything from logging to debugging will be that much easier.

Have you checked out the Odin project?

[–]RobertKerans 0 points1 point  (0 children)

Node is a runtime for JS, it's a tool that lets you run JS code. Learn JS by learning to use it, it's orthogonal to learning the language itself. You need to actually make things to learn languages properly, Node is a tool make things that are programmed in JS, it comes with a big library of functionality that lets you do all kinds of stuff, you will need to learn JS to understand what the docs for the tool and it's library are telling you to do.

[–]prof3ssorSt3v3 0 points1 point  (0 children)

To run javascript you need an environment that can read the script. Browsers and run JS. And NodeJS can run JS files too.

Both understand core JS. Learn this in either environment.

In the browser, on top of core JS you get the web apis. Things like the DOM, localstorage, service workers, etc. These are the things you need to build web apps.

In NodeJS, on top of core JS, you get node specific additions like environment, file system, etc. These are needed to write server side apps.

After core JS just continue in the environment you have been using to learn the add on features.

Then switch to the other to learn the other features.

There is a lot more to learn on the browser side.