An Introduction to JavaScript

Let’s see what’s so special about JavaScript, what we can achieve with it, and what other technologies play well with it.

Why is it call JavaScript?

JavaScript initially called “Live Script”. But Java was popular at that time, so it was decided that positioning a new language as a “younger brother” of Java would help. But as it evolved, JavaScript became a fully independent language with its won specification called ECMAScript, and now it has no relation to Java at all.

Today, JavaScript can execute on any device that has a special program called the JavaScript engine. The browser has an embedded engine called a “JavaScript virtual machine”.

Different engines hav different “codenames”:

What can in-browser JavaScript do?

Morden JavaScript is a “safe” programming language. It does not provide low-level access to memory or CPU, because it was initially created for browsers which do not require it.

Node.js supports functions that allow JavaScript to read/write arbitrary files, perform network requests, etc. In-browser JavaScript can do everything related to webpage manipulation, interaction with the user, and the webserver.

What can’t in-browser JavaScript do?

For safety reasons, it can’t:

Such limitations do not exist if JavaScript is used outside of the browser, for example on a server.

What makes JavaScript unique?

JavaScript is the only browser technology that combines these three things.

Languages “over” JavaScript

The syntax of JavaScript not suit everyone’s needs. Recently a plethora of new languages appered, which are transpiled to JavaScript before they run in the browser.

Manuals and Specifications

Specification

The ECMA-262 specification contains the most in-depth, detailed and formalized information about JavaScript.

A new specification version is released every year. Between these releases, the latest specification draft is at https://tc39.es/ecma262/.

To read about new bleeding-edge features, including those that are “almost standard” (so-called “stage 3”), see proposals at https://github.com/tc39/proposals.

Manuals

MDN (Mozillz) JavaScript Reference is the main manual with examples and other information. It’s great to get in-depth information about individual language functions, methods etc.

Compatibility tables

JavaScript is a developing language, new features get added regularly.

To see their support among browser-based and other engines, see:

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut