ECMAScript →

It’s basically the rulebook that specifies the rules for creating a JavaScript engine.

It has various versions, and every year, things are added on top of the previous year’s specifications (ES5, ES6/ES2015, ES2017, etc.)

<aside> 💡 Various browsers keep getting out of date as new rules are added to a newer version of ECMAScript

</aside>

JavaScript →

It is the language that adheres to the rules written in the ECMAScript.

<aside> 💡 It’s like, Cricket is a sport that follows some rules which the umpires check whenever a game is being played.

Cricket, is JavaScript. Rulebook that is followed - ECMAScript Umpires - JavaScript engines

</aside>

JS does add some more specifications/features on top of the ones laid out in ECMAScript which are crucial for web development.

Untitled

Commonly used JS engines →

  1. Google Chrome - V8
  2. Firefox - SpiderMonkey

Node.js →

JavaScript was never a backend language. It was always used with HTML and CSS to create websites’ front-ends.

But, someone thought, it’s already the language of browsers, there’s already engines (V8, SpiderMonkey) to understand it and ‘compile’ it, why not add some features and use those engines to make it a backend language like Java, or Python?

So, some smart ass took out the V8 engine, added some functionalities on top of the existing ones, and created a new runtime with JS which is now known as Node.JS