Skip to content

Glossary · 24 terms

JavaScript

The language, async code and the runtime underneath.

Beginner · Students and graduates

Variable
A name bound to a value. In modern JavaScript you declare one with let, or const when it will not be reassigned. Read the reference
Function
A callable unit of code that takes parameters and can return a value. Functions are values too, so you can pass them around. Read the reference
Array
A list-like object with numeric indexes and methods such as map, filter and reduce for working with its items. Read the reference
Object
The basic structure of JavaScript: properties keyed by strings or symbols. Arrays, functions and dates are all objects. Read the reference
Boolean
The primitive type with two values. Conditions convert other values to it, which is where “truthy” and “falsy” come from. Read the reference
String
An immutable text value. Template literals with backticks allow ${} interpolation and multiple lines. Read the reference
DOM
The Document Object Model: the live, scriptable tree of nodes that represents the page. JavaScript reads and changes the page through it. Read the reference
Callback
A function handed to another function, which calls it when something happens, such as an event firing or a timer ending. Read the reference

Practitioner · Working engineers

Closure
A function bundled with its surrounding scope. It keeps access to those variables even after the outer function has returned. Read the reference
Promise
Represents the eventual result of an asynchronous operation: pending, then fulfilled or rejected. Chain it with then or await it. Read the reference
Async
An async function always returns a promise, and can pause at each await until a promise settles, so async code reads top to bottom. Read the reference
Hoisting
Declarations are processed before code runs. Function declarations are fully available; let and const exist but can’t be used before their line. Read the reference
Event loop
JavaScript runs one task at a time. The event loop picks the next task, then runs all pending microtasks, then lets the browser render. Read the reference
Prototype
Every object links to a prototype. Property lookups walk this chain, which is how methods are shared and how class works under the hood. Read the reference
Module
ES modules give each file its own scope and explicit imports and exports, which lets bundlers drop unused code. Read the reference
Debounce
A technique that delays a function until no new calls arrive for a set time, e.g. searching only after the user stops typing. Read the reference

Lead · Seniors and managers

Microtask
Promise reactions and queueMicrotask callbacks run after the current task and before rendering or the next task, all in one go. Read the reference
Generator
A function* returns an iterator. Each next() call runs it to the next yield, which makes lazy sequences easy. Read the reference
Proxy
A Proxy wraps a target with traps for get, set and more. Reactive state libraries use it to track reads and writes. Read the reference
WeakMap
Keys must be objects and are held weakly, so entries disappear when the key is no longer used. Good for caches and private data. Read the reference
Temporal
A built-in namespace with immutable types like PlainDate, ZonedDateTime and Duration, and real time zone and calendar support. Read the reference
Iterator
An object with a next() method returning { value, done }. Iterator helpers add map, filter and take that work lazily. Read the reference
Memoize
Storing results keyed by arguments so repeated calls skip the work. It only suits pure functions. Read the reference
Symbol
Every Symbol() is unique. Well-known symbols such as Symbol.iterator let objects plug into built-in language behaviour. Read the reference