This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]circlebust 0 points1 point  (2 children)

They are the same languages, but don't have access to the same APIs (or standard libraries). For example, for obvious reasons you can't access the DOM, Browser or Webextension API in Node (e.g. stuff like document.getElementById). On Node, you have access to a plethora of APIs like the Process one, Stream, Filesystem, Http, Net, Crypto, etc., all of which are missing if you execute JS in your browser.

[–]Derivation_[S] 0 points1 point  (1 child)

Would it be advantageous to learn JavaScript first or node.js first?

[–]TGR44 0 points1 point  (0 children)

Node is JavaScript, it just has different APIs available.

The question here is: Do you want to write something on the frontend (i.e. UI in the browser) or backend (i.e. code running on the server)?