MEPX
Chapter 1 of 16All chapters

Chapter 1 of 16

Introduction

Where JavaScript runs and what it is for.

One language, several homes

JavaScript began in the browser in 1995 and now also runs servers, build tools and desktop apps through Node. The language is standardised as ECMAScript, which is why you see names like ES2015.

  • The browser adds the DOM and fetch. Node adds files, processes and networking.
  • The core language is the same in both, so most of what you learn moves across.

Running it

In a browser, a script tag loads a file or the console runs a line at a time. With Node installed, node file.js runs the same code outside a page.