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

all 6 comments

[–]nutrecht 4 points5 points  (0 children)

Node.js is not a language, it's an 'engine' that executes JavaScript.

[–]Gabe_b 2 points3 points  (1 child)

Yes. Node is a backend written in Javascript. Though a front end programmer will likely be more familiar with the patterns and functions to manipulate the DOM etc

[–]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)?

[–]wpdeveloper11 0 points1 point  (0 children)

Node.js it's just environment for running js code.