JavaScript

The programming language of web browsers, also widely used on servers through Node.js.

In more detail

It adds behaviour to web pages, such as responding to clicks, changing the page and fetching data. JS is its common abbreviation, and TypeScript is a type-checked variant that compiles to it.

Examples

React components and the lesson scripts are JavaScript (written as TypeScript).
In the browser: The browser runs JavaScript on the page's main thread, so long-running scripts delay rendering and input. The language is standardised as ECMAScript, and the browser adds web interfaces such as the DOM, fetch and timers.
Python does not run in the browser; JavaScript does.
React components are ordinary JavaScript functions, and JSX is compiled down to plain JavaScript before the browser runs it.
In this course it matters as the language an injected script is written in during cross-site scripting, and as the content of front-end bundles that must never contain server keys.
In this course: Its test tools include Jest and Vitest, and code that needs randomness is often given a random function as an argument so tests can control it. Its type-checked variant is TypeScript.
.js is the file extension of JavaScript files; .ts is TypeScript

Related terms

Taught in

References

Certification courses