JavaScript AcademyProfessional Engineering

JavaScript glossary

257 terms explained for beginners, with an optional technical definition and links to the lessons that use them.

!==
Strict not-equal.
Technical definition
Introduced in Lesson 11: Comparison operators. See its professional explanation for engine-level detail.

Lesson 11

Acceptance test
A test that checks a whole feature works the way a user needs.
Technical definition
An end-to-end check against acceptance criteria, often through the UI.

Lesson 127 planned

Accessor function
A small function that reads a value from a known place in a data structure.
Technical definition
Introduced in Lesson 38: Nested objects and arrays. See its professional explanation for engine-level detail.

Lesson 38

Accumulator
The running result passed from one reduce call to the next.
Technical definition
Introduced in Lesson 34: reduce and aggregation. See its professional explanation for engine-level detail.

Lesson 34

Accumulator pattern
A variable that collects a result, such as a sum, across iterations.
Technical definition
Introduced in Lesson 20: Solving problems with iteration. See its professional explanation for engine-level detail.

Lesson 20

Aggregation
Combining many values into a summary such as a total, count or average.
Technical definition
Introduced in Lesson 34: reduce and aggregation. See its professional explanation for engine-level detail.

Lesson 34

Argument
The actual value passed to a function when it is called.
Technical definition
Introduced in Lesson 22: Parameters and arguments. See its professional explanation for engine-level detail.

Lesson 22

Array
A numbered list of values, written with [ ].
Technical definition
An exotic object with integer-indexed properties and a length.
const prices = [25, 40, 15];

Lesson 4 · Lesson 26

Array destructuring
Unpacking elements by position with const [a, b] = list.
Technical definition
Introduced in Lesson 41: Destructuring. See its professional explanation for engine-level detail.

Lesson 41

Array of objects
A list where each element is an object with the same properties.
Technical definition
Introduced in Lesson 29: Iterating over collections. See its professional explanation for engine-level detail.

Lesson 29

Arrow function
A compact function expression written with =>.
Technical definition
Introduced in Lesson 24: Arrow functions. See its professional explanation for engine-level detail.

Lesson 24

Assertion
A statement in a test that says what must be true.
Technical definition
A check that throws or reports failure when its condition is false.

Lesson 116 planned

Assignment
Storing a value in a variable with =.
Technical definition
The = operator evaluates its right-hand side and stores the result in the left-hand reference.
total = total + 5;

Lesson 2 · Lesson 3

at()
Reads an element by index; negative numbers count from the end.
Technical definition
Introduced in Lesson 26: Creating and accessing arrays. See its professional explanation for engine-level detail.

Lesson 26

Automatic Semicolon Insertion (ASI)
JavaScript's habit of adding some missing semicolons for you.
Technical definition
Parser rules that insert semicolons at line breaks in specific situations, with known pitfalls.

Lesson 3

Block
Statements grouped in { } that run together.
Technical definition
Introduced in Lesson 13: If, else if and else. See its professional explanation for engine-level detail.

Lesson 13

Block body
An arrow function body in braces; it needs an explicit return.
Technical definition
Introduced in Lesson 24: Arrow functions. See its professional explanation for engine-level detail.

Lesson 24

Block scope
let and const visible only inside the { } block that declares them.
Technical definition
Introduced in Lesson 46: Global, function and block scope. See its professional explanation for engine-level detail.

Lesson 46

Boolean
A value that is either true or false.
Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail.

Lesson 9

Boundary value
A value at the edge of what is allowed, such as 0 or 99 for a quantity limit.
Technical definition
Inputs at and around partition limits, where off-by-one defects cluster.

Lesson 118 planned

Bracket notation
Reading or writing a property with obj[expression].
Technical definition
Introduced in Lesson 37: Properties, methods and dynamic keys. See its professional explanation for engine-level detail.

Lesson 37

break
Stops a switch (or loop) immediately.
Technical definition
Introduced in Lesson 14: Switch statements and conditional expressions. See its professional explanation for engine-level detail.

Lesson 14

Browser
A program for viewing websites. Every modern browser contains a JavaScript engine.
Technical definition
A host that exposes Web APIs (DOM, CSSOM, fetch, storage) to page scripts.

Lesson 1

Bug
A mistake in a program that makes it behave differently from what was intended.
Technical definition
A defect: a deviation between specified and actual behaviour.

Lesson 5

Call (invoke)
Running a function by writing its name followed by brackets.
Technical definition
Introduced in Lesson 21: Function declarations and expressions. See its professional explanation for engine-level detail.

Lesson 21

Call stack
The stack of execution contexts for functions that are currently running.
Technical definition
Introduced in Lesson 50: Understanding execution contexts. See its professional explanation for engine-level detail.

Lesson 50

Callback
A function passed to another function to be called later.
Technical definition
Introduced in Lesson 24: Arrow functions. See its professional explanation for engine-level detail.

Lesson 24

camelCase
A naming style that joins words and capitalises each word after the first: cartTotal.
Technical definition
Introduced in Lesson 6: Variables with let and const. See its professional explanation for engine-level detail.

Lesson 6

Captured variable
An outer variable that a closure keeps alive and can read or change.
Technical definition
Introduced in Lesson 48: Closures. See its professional explanation for engine-level detail.

Lesson 48

case
A value in a switch to compare against.
Technical definition
Introduced in Lesson 14: Switch statements and conditional expressions. See its professional explanation for engine-level detail.

Lesson 14

Case-sensitive
Capital and small letters count as different: total and Total are two different names.
Technical definition
Identifiers are compared code unit by code unit.

Lesson 5

Closure
A function plus the outer variables it keeps access to from where it was defined.
Technical definition
Introduced in Lesson 48: Closures. See its professional explanation for engine-level detail.

Lesson 48

Collection
A group of similar items, usually stored as an array of objects.
Technical definition
Introduced in Lesson 30: Building collection-based applications. See its professional explanation for engine-level detail.

Lesson 30

Comment
A note in code that JavaScript ignores, written with // or / /.
Technical definition
Text removed during tokenising; it has no effect at runtime.
// explains why the discount is applied first

Lesson 3

Compare function
A function given to sort that decides which of two elements comes first.
Technical definition
Introduced in Lesson 28: Searching and sorting arrays. See its professional explanation for engine-level detail.

Lesson 28

Comparison operator
An operator that compares two values and gives true or false.
Technical definition
Introduced in Lesson 11: Comparison operators. See its professional explanation for engine-level detail.

Lesson 11

Composition
Combining functions so the output of one becomes the input of the next.
Technical definition
Introduced in Lesson 25: Combining functions into applications. See its professional explanation for engine-level detail.

Lesson 25

Computed key
A property name calculated from an expression in [ ] inside an object literal.
Technical definition
Introduced in Lesson 37: Properties, methods and dynamic keys. See its professional explanation for engine-level detail.

Lesson 37

Concatenation
Joining strings together with +.
Technical definition
String concatenation via the + operator when either operand is a string after ToPrimitive.
"Java" + "Script" // "JavaScript"

Lesson 2

Concise body
An arrow function body without braces; its expression is returned.
Technical definition
Introduced in Lesson 24: Arrow functions. See its professional explanation for engine-level detail.

Lesson 24

Conditional (ternary) operator
condition ? a : b: chooses a value in one expression.
Technical definition
Introduced in Lesson 14: Switch statements and conditional expressions. See its professional explanation for engine-level detail.

Lesson 14

Console
A text panel where programs print messages, used to see results and find problems.
Technical definition
The Console API (console.log, warn, error, table, group) defined by the WHATWG Console Standard.
console.log("total:", 42);

Lesson 1 · Lesson 4

console.error
Prints an error message, usually shown in red.
Technical definition
Logs at the error level; monitoring tools often collect these.
console.error("Payment failed");

Lesson 4

console.group
Indents the following console lines until console.groupEnd().
Technical definition
Starts a new inline group in the console log.

Lesson 4

console.log
Prints values to the console, separated by spaces.
Technical definition
Logs arguments at the log level; formatting is host-specific.
console.log("a", 1);

Lesson 1 · Lesson 4

console.table
Prints a list of records as a table.
Technical definition
Displays tabular data for arrays and objects.
console.table([{ a: 1 }, { a: 2 }]);

Lesson 4

console.warn
Prints a warning, usually shown in yellow.
Technical definition
Logs at the warn level.
console.warn("Low stock");

Lesson 4

const
The keyword that creates a variable that cannot be given a new value.
Technical definition
Declares a block-scoped binding that cannot be reassigned (its object can still be mutated).
const taxRate = 0.1;

Lesson 2 · Lesson 6

continue
Skips the rest of the current iteration and moves to the next.
Technical definition
Introduced in Lesson 18: Break and continue. See its professional explanation for engine-level detail.

Lesson 18

Counter pattern
A variable that counts how many items meet a condition.
Technical definition
Introduced in Lesson 20: Solving problems with iteration. See its professional explanation for engine-level detail.

Lesson 20

CRUD
Create, Read, Update, Delete: the basic operations on a collection.
Technical definition
Introduced in Lesson 30: Building collection-based applications. See its professional explanation for engine-level detail.

Lesson 30

Data model
The set of entities, their properties and how they are linked.
Technical definition
Introduced in Lesson 40: Modeling real-world information. See its professional explanation for engine-level detail.

Lesson 40

Debugging
Finding and fixing the cause of a bug.
Technical definition
Hypothesis-driven investigation: reproduce, isolate, inspect, fix, verify.

Lesson 5 · Lesson 102 planned

Decision table
A table of condition combinations and the expected result for each.
Technical definition
Introduced in Lesson 15: Building decision-making applications. See its professional explanation for engine-level detail.

Lesson 15

Declaration
The statement that creates a variable, such as let count = 0;.
Technical definition
Introduced in Lesson 6: Variables with let and const. See its professional explanation for engine-level detail.

Lesson 6

Declarative code
Code that says what result you want rather than how to loop for it.
Technical definition
Introduced in Lesson 35: Combining array methods into processing pipelines. See its professional explanation for engine-level detail.

Lesson 35

Decomposition
Breaking a problem into smaller parts, each solved by its own function.
Technical definition
Introduced in Lesson 25: Combining functions into applications. See its professional explanation for engine-level detail.

Lesson 25

Deep copy
A copy in which every nested object is also copied.
Technical definition
Introduced in Lesson 39: Object copying and reference behavior. See its professional explanation for engine-level detail.

Lesson 39

default
The switch branch that runs when no case matches.
Technical definition
Introduced in Lesson 14: Switch statements and conditional expressions. See its professional explanation for engine-level detail.

Lesson 14

Default parameter
A value used when an argument is missing (undefined).
Technical definition
Introduced in Lesson 22: Parameters and arguments. See its professional explanation for engine-level detail.

Lesson 22

Default value
A fallback used when the unpacked value is undefined.
Technical definition
Introduced in Lesson 41: Destructuring. See its professional explanation for engine-level detail.

Lesson 41

Derived value
A value calculated from stored data instead of stored itself.
Technical definition
Introduced in Lesson 40: Modeling real-world information. See its professional explanation for engine-level detail.

Lesson 40

Destructuring
Syntax that unpacks values from arrays or properties from objects into variables.
Technical definition
Introduced in Lesson 41: Destructuring. See its professional explanation for engine-level detail.

Lesson 41

do...while loop
A loop that runs its body once, then repeats while its condition is true.
Technical definition
Introduced in Lesson 17: While and do-while loops. See its professional explanation for engine-level detail.

Lesson 17

DOM
The browser's live model of a web page, which JavaScript can read and change.
Technical definition
The Document Object Model: a tree of Node objects representing the parsed document.
document.querySelector("#status").textContent = "Hi";

Lesson 1 · Lesson 51 planned

Dot notation
Reading or writing a property with object.key.
Technical definition
Introduced in Lesson 36: Creating JavaScript objects. See its professional explanation for engine-level detail.

Lesson 36

Early exit
Stopping a loop as soon as the answer is known.
Technical definition
Introduced in Lesson 18: Break and continue. See its professional explanation for engine-level detail.

Lesson 18

Early return
Returning at the start of a function when input is invalid or a simple case applies.
Technical definition
Introduced in Lesson 23: Return values. See its professional explanation for engine-level detail.

Lesson 23

ECMAScript
The official name of the standard that defines the JavaScript language.
Technical definition
ECMA-262, published yearly by Ecma TC39 (ES2015, ES2016, …). Hosts add APIs on top of it.

Lesson 1

Edge case
An unusual input, such as zero, empty text or the largest allowed value.
Technical definition
Introduced in Lesson 15: Building decision-making applications. See its professional explanation for engine-level detail.

Lesson 15

Element
One value stored in an array.
Technical definition
Introduced in Lesson 26: Creating and accessing arrays. See its professional explanation for engine-level detail.

Lesson 26

else
The block that runs when no earlier condition was true.
Technical definition
Introduced in Lesson 13: If, else if and else. See its professional explanation for engine-level detail.

Lesson 13

else if
An extra condition checked when the previous ones were false.
Technical definition
Introduced in Lesson 13: If, else if and else. See its professional explanation for engine-level detail.

Lesson 13

Entity
A kind of thing in the problem, such as a book or a customer.
Technical definition
Introduced in Lesson 40: Modeling real-world information. See its professional explanation for engine-level detail.

Lesson 40

Entries
The [key, value] pairs of a Map or object.
Technical definition
Introduced in Lesson 45: Sets, Maps and modern collection patterns. See its professional explanation for engine-level detail.

Lesson 45

entries()
Returns [index, value] pairs for an array.
Technical definition
Introduced in Lesson 29: Iterating over collections. See its professional explanation for engine-level detail.

Lesson 29

Error
A message from JavaScript saying something went wrong, with a type, a message and a line.
Technical definition
An Error object with name, message and stack, thrown to signal an exceptional condition.

Lesson 5

Error message
The text that explains what went wrong.
Technical definition
The message property of an Error object.

Lesson 5

Escape sequence
A backslash code for a special character, such as \n (new line) or \" (a quote).
Technical definition
Introduced in Lesson 7: Strings and template literals. See its professional explanation for engine-level detail.

Lesson 7

every
True when all elements pass the test.
Technical definition
Introduced in Lesson 33: filter and selection. See its professional explanation for engine-level detail.

Lesson 33

Execution context
The environment in which one piece of code runs: its variables, scope link and this.
Technical definition
Introduced in Lesson 50: Understanding execution contexts. See its professional explanation for engine-level detail.

Lesson 50

Exponent operator (**)
Raises a number to a power: 3 ** 2 is 9.
Technical definition
Introduced in Lesson 8: Numbers and mathematical operations. See its professional explanation for engine-level detail.

Lesson 8

Expression
Code that produces a value, such as 3 + 4.
Technical definition
Any syntactic construct that evaluates to a value.
price * quantity

Lesson 3

Expression statement
A line that is just an expression, such as a function call.
Technical definition
A statement consisting of an expression evaluated for its side effects; its value is discarded.
console.log("Hi");

Lesson 3

Factory function
A function that creates objects with a consistent shape.
Technical definition
Introduced in Lesson 40: Modeling real-world information. See its professional explanation for engine-level detail.

Lesson 40

Fall-through
Running into the next case because break was left out.
Technical definition
Introduced in Lesson 14: Switch statements and conditional expressions. See its professional explanation for engine-level detail.

Lesson 14

Falsy
A value that counts as false: false, 0, "", null, undefined and NaN.
Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail.

Lesson 9

filter
Returns a new array with only the elements that pass a test.
Technical definition
Introduced in Lesson 33: filter and selection. See its professional explanation for engine-level detail.

Lesson 33

find / findIndex
Return the first element (or its index) that passes a test function.
Technical definition
Introduced in Lesson 28: Searching and sorting arrays. See its professional explanation for engine-level detail.

Lesson 28

Flag
A boolean variable that records whether something happened.
Technical definition
Introduced in Lesson 18: Break and continue. See its professional explanation for engine-level detail.

Lesson 18

Floating point
The way computers store decimal numbers, which can cause tiny rounding differences such as 0.1 + 0.2 = 0.30000000000000004.
Technical definition
IEEE 754 binary64 arithmetic cannot represent most decimal fractions exactly.
0.1 + 0.2

Lesson 8

for...in
A loop over an object's property names; not intended for arrays.
Technical definition
Introduced in Lesson 29: Iterating over collections. See its professional explanation for engine-level detail.

Lesson 29

for...of
A loop that gives each element of an array or string in turn.
Technical definition
Introduced in Lesson 16: For loops. See its professional explanation for engine-level detail.

Lesson 16

forEach
Calls a function once for each element of an array.
Technical definition
Introduced in Lesson 31: forEach and iteration. See its professional explanation for engine-level detail.

Lesson 31

Foreign key
A property that stores another record's id to link them.
Technical definition
Introduced in Lesson 40: Modeling real-world information. See its professional explanation for engine-level detail.

Lesson 40

Function
A named block of code you can run whenever you need it.
Technical definition
A callable object with its own scope; created by declarations, expressions or arrows.
function add(a, b) { return a + b; }

Lesson 21

Function declaration
A statement that defines a named function: function name() {}.
Technical definition
Introduced in Lesson 21: Function declarations and expressions. See its professional explanation for engine-level detail.

Lesson 21

Function expression
A function created as a value, often stored in a variable.
Technical definition
Introduced in Lesson 21: Function declarations and expressions. See its professional explanation for engine-level detail.

Lesson 21

Function factory
A function that creates and returns configured functions.
Technical definition
Introduced in Lesson 48: Closures. See its professional explanation for engine-level detail.

Lesson 48

Function scope
Variables visible only inside the function that declares them.
Technical definition
Introduced in Lesson 46: Global, function and block scope. See its professional explanation for engine-level detail.

Lesson 46

Global scope
The outermost scope, visible to all code.
Technical definition
Introduced in Lesson 46: Global, function and block scope. See its professional explanation for engine-level detail.

Lesson 46

Grid (2D array)
An array of arrays, read with grid[row][col].
Technical definition
Introduced in Lesson 19: Nested loops and patterns. See its professional explanation for engine-level detail.

Lesson 19

Guard clause
An early check that handles an invalid case first so the main code stays simple.
Technical definition
Introduced in Lesson 13: If, else if and else. See its professional explanation for engine-level detail.

Lesson 13

Helper function
A small function that supports a larger task.
Technical definition
Introduced in Lesson 25: Combining functions into applications. See its professional explanation for engine-level detail.

Lesson 25

Higher-order function
A function that takes or returns another function.
Technical definition
Introduced in Lesson 31: forEach and iteration. See its professional explanation for engine-level detail.

Lesson 31

Hoisting
Function declarations are available before their line in the code.
Technical definition
Introduced in Lesson 21: Function declarations and expressions. See its professional explanation for engine-level detail.

Lesson 21

Host environment
The place where JavaScript runs, such as a browser or Node.js, which adds its own features.
Technical definition
The embedding that provides global objects and APIs (DOM, fetch, fs) and the event loop.

Lesson 1

Identifier
The name you give a variable or function.
Technical definition
A name token matching IdentifierName rules; case-sensitive.

Lesson 2 · Lesson 5

if statement
Runs a block only when its condition is true.
Technical definition
Introduced in Lesson 13: If, else if and else. See its professional explanation for engine-level detail.

Lesson 13

Immutable update
Creating a changed copy instead of modifying the original.
Technical definition
Introduced in Lesson 39: Object copying and reference behavior. See its professional explanation for engine-level detail.

Lesson 39

Implicit coercion
A conversion JavaScript performs automatically, such as "5" * 2 → 10.
Technical definition
Introduced in Lesson 10: Type conversion and type checking. See its professional explanation for engine-level detail.

Lesson 10

Implicit return
An arrow function without braces returns its expression.
Technical definition
Introduced in Lesson 32: map and transformations. See its professional explanation for engine-level detail.

Lesson 32

includes
Returns true when an array contains a value.
Technical definition
Introduced in Lesson 28: Searching and sorting arrays. See its professional explanation for engine-level detail.

Lesson 28

Increment (i++)
Adds one to a variable.
Technical definition
Introduced in Lesson 16: For loops. See its professional explanation for engine-level detail.

Lesson 16

Index
The position of a character, starting at 0.
Technical definition
Introduced in Lesson 7: Strings and template literals. See its professional explanation for engine-level detail.

Lesson 7

indexOf
Returns the index of the first matching value, or -1.
Technical definition
Introduced in Lesson 28: Searching and sorting arrays. See its professional explanation for engine-level detail.

Lesson 28

Infinite loop
A loop whose condition never becomes false.
Technical definition
Introduced in Lesson 17: While and do-while loops. See its professional explanation for engine-level detail.

Lesson 17

Initial value
The accumulator's starting value, passed as reduce's second argument.
Technical definition
Introduced in Lesson 34: reduce and aggregation. See its professional explanation for engine-level detail.

Lesson 34

Inline function
A function written directly where it is passed as an argument.
Technical definition
Introduced in Lesson 31: forEach and iteration. See its professional explanation for engine-level detail.

Lesson 31

Inner loop
The loop inside; it runs fully for each outer iteration.
Technical definition
Introduced in Lesson 19: Nested loops and patterns. See its professional explanation for engine-level detail.

Lesson 19

Intermediate result
The value produced partway through a pipeline.
Technical definition
Introduced in Lesson 35: Combining array methods into processing pipelines. See its professional explanation for engine-level detail.

Lesson 35

Iterable
A value that for...of can loop over, such as an array, string, Set or Map.
Technical definition
Introduced in Lesson 29: Iterating over collections. See its professional explanation for engine-level detail.

Lesson 29

Iteration
One pass through the body of a loop.
Technical definition
Introduced in Lesson 16: For loops. See its professional explanation for engine-level detail.

Lesson 16

JavaScript
The programming language of the web. You write instructions as text and a JavaScript engine carries them out.
Technical definition
A dynamically typed, multi-paradigm language standardised as ECMAScript (ECMA-262).
console.log("Hello");

Lesson 1

JavaScript engine
The program that reads JavaScript and runs it, built into browsers and Node.js.
Technical definition
V8, SpiderMonkey and JavaScriptCore parse source, compile it (often just-in-time) and execute it.

Lesson 1

JSON
A text format for data that looks like JavaScript objects and arrays.
Technical definition
JavaScript Object Notation (RFC 8259); JSON.stringify and JSON.parse convert to and from text.
JSON.stringify({ a: 1 }) // '{"a":1}'

Lesson 69 planned

Key
The name of a property.
Technical definition
Introduced in Lesson 36: Creating JavaScript objects. See its professional explanation for engine-level detail.

Lesson 36

Keyword
A word with a special meaning in JavaScript, such as let, const or if.
Technical definition
A reserved word in the grammar that cannot be used as an identifier.

Lesson 2

Label
Text printed next to a value so you know what it is.
Technical definition
A descriptive first argument to a logging call.
console.log("subtotal:", subtotal);

Lesson 4

length
The number of elements in an array.
Technical definition
Introduced in Lesson 26: Creating and accessing arrays. See its professional explanation for engine-level detail.

Lesson 26

let
The keyword that creates a variable whose value can change.
Technical definition
Declares a block-scoped, reassignable binding subject to the temporal dead zone.
let count = 0;
count = count + 1;

Lesson 2 · Lesson 6

Lexical environment
The engine's record of a scope's names plus a link to its outer environment.
Technical definition
Introduced in Lesson 47: Lexical environments. See its professional explanation for engine-level detail.

Lesson 47

Lexical scope
Scope decided by where code is written in the source.
Technical definition
Introduced in Lesson 47: Lexical environments. See its professional explanation for engine-level detail.

Lesson 47

Lexical this
Arrow functions use the this of the code around them.
Technical definition
Introduced in Lesson 24: Arrow functions. See its professional explanation for engine-level detail.

Lesson 24

Lexicographic order
Comparing text character by character, like a dictionary but by character code.
Technical definition
Introduced in Lesson 11: Comparison operators. See its professional explanation for engine-level detail.

Lesson 11

Line number
The position of a line in the code, used by error messages to point at the problem.
Technical definition
A source location reported by the parser or in stack frames.

Lesson 5

Linear search
Checking items one by one until a match is found.
Technical definition
Introduced in Lesson 20: Solving problems with iteration. See its professional explanation for engine-level detail.

Lesson 20

localStorage
A small browser storage area that keeps text even after the page is closed.
Technical definition
A synchronous Storage object scoped to the origin; values are strings.
localStorage.setItem("k", "v");

Lesson 68 planned

Log level
How important a console message is: log, info, warn or error.
Technical definition
Severity metadata used for filtering and monitoring.

Lesson 4

Logic error
A mistake that makes a program give the wrong result without any error message.
Technical definition
Incorrect behaviour from valid code; found by tests and investigation.

Lesson 5

Logical AND (&&)
True when both conditions are true.
Technical definition
Introduced in Lesson 12: Logical operators. See its professional explanation for engine-level detail.

Lesson 12

Logical assignment
The ??=, ||= and &&= operators, which assign only under a condition.
Technical definition
Introduced in Lesson 44: Nullish coalescing and default values. See its professional explanation for engine-level detail.

Lesson 44

Logical NOT (!)
Flips a value's truthiness: !true is false.
Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail.

Lesson 9

Logical OR (||)
True when at least one condition is true.
Technical definition
Introduced in Lesson 12: Logical operators. See its professional explanation for engine-level detail.

Lesson 12

Loop
Code that repeats a block while a condition stays true.
Technical definition
Introduced in Lesson 16: For loops. See its professional explanation for engine-level detail.

Lesson 16

Loop counter
The variable, often i, that changes each iteration and controls when the loop stops.
Technical definition
Introduced in Lesson 16: For loops. See its professional explanation for engine-level detail.

Lesson 16

Loop guard
An extra condition, such as a maximum number of attempts, that stops a loop safely.
Technical definition
Introduced in Lesson 17: While and do-while loops. See its professional explanation for engine-level detail.

Lesson 17

Loose equality (==)
Converts types before comparing; can give surprising results.
Technical definition
Introduced in Lesson 11: Comparison operators. See its professional explanation for engine-level detail.

Lesson 11

Magic number
An unexplained number in code; replace it with a named constant.
Technical definition
Introduced in Lesson 15: Building decision-making applications. See its professional explanation for engine-level detail.

Lesson 15

map
Creates a new array from the return value of a function called on each element.
Technical definition
Introduced in Lesson 32: map and transformations. See its professional explanation for engine-level detail.

Lesson 32

Math
A built-in object with mathematical functions such as Math.round and Math.max.
Technical definition
Introduced in Lesson 8: Numbers and mathematical operations. See its professional explanation for engine-level detail.

Lesson 8

Math.max
Returns the largest of the numbers you give it.
Technical definition
Math.max(...values); returns -Infinity with no arguments and NaN if any argument is NaN.
Math.max(4, 9, 2) // 9

Lesson 5

Maximum pattern
Keeping the largest value seen so far and replacing it when a larger one appears.
Technical definition
Introduced in Lesson 20: Solving problems with iteration. See its professional explanation for engine-level detail.

Lesson 20

Membership check
Testing whether a value is in a collection, e.g. set.has(value).
Technical definition
Introduced in Lesson 45: Sets, Maps and modern collection patterns. See its professional explanation for engine-level detail.

Lesson 45

Method
A function that belongs to a value, called with a dot: text.trim().
Technical definition
Introduced in Lesson 7: Strings and template literals. See its professional explanation for engine-level detail.

Lesson 7

Method chaining
Calling a method on the result of the previous method call.
Technical definition
Introduced in Lesson 35: Combining array methods into processing pipelines. See its professional explanation for engine-level detail.

Lesson 35

Mutation
Changing an existing value in place instead of creating a new one.
Technical definition
Introduced in Lesson 27: Adding and removing elements. See its professional explanation for engine-level detail.

Lesson 27

NaN
"Not a Number": the result of a calculation that has no numeric answer.
Technical definition
Introduced in Lesson 8: Numbers and mathematical operations. See its professional explanation for engine-level detail.

Lesson 8

Nested loop
A loop placed inside the body of another loop.
Technical definition
Introduced in Lesson 19: Nested loops and patterns. See its professional explanation for engine-level detail.

Lesson 19

Nested object
An object stored as a property value inside another object.
Technical definition
Introduced in Lesson 38: Nested objects and arrays. See its professional explanation for engine-level detail.

Lesson 38

Node.js
A program that runs JavaScript outside the browser, for servers and command-line tools.
Technical definition
A V8-based runtime with an event loop (libuv) and modules such as fs, http and path.
node app.js

Lesson 1 · Lesson 106 planned

null
A value that means "intentionally empty".
Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail.

Lesson 9

Nullish
Either null or undefined.
Technical definition
Introduced in Lesson 43: Optional chaining. See its professional explanation for engine-level detail.

Lesson 43

Nullish coalescing
The ?? operator, which returns its right side only when the left side is null or undefined.
Technical definition
Introduced in Lesson 44: Nullish coalescing and default values. See its professional explanation for engine-level detail.

Lesson 44

Number
A numeric value such as 42 or 4.5, written without quotes.
Technical definition
An IEEE 754 double-precision floating-point value; integers are exact up to 2^53 − 1.
const price = 4.5;

Lesson 2 · Lesson 8

Number()
Converts a value to a number, or NaN if the whole value is not numeric.
Technical definition
Introduced in Lesson 10: Type conversion and type checking. See its professional explanation for engine-level detail.

Lesson 10

Object
A collection of named values, written with { }.
Technical definition
A collection of properties keyed by strings or symbols, with a prototype.
const cart = { items: 3 };

Lesson 4 · Lesson 36

Object destructuring
Unpacking properties by name with const { a, b } = obj.
Technical definition
Introduced in Lesson 41: Destructuring. See its professional explanation for engine-level detail.

Lesson 41

Object literal
Creating an object directly with curly braces.
Technical definition
Introduced in Lesson 36: Creating JavaScript objects. See its professional explanation for engine-level detail.

Lesson 36

Object.entries
Returns an array of [key, value] pairs for an object.
Technical definition
Introduced in Lesson 37: Properties, methods and dynamic keys. See its professional explanation for engine-level detail.

Lesson 37

Operand
A value an operator works on: in 3 + 4, the operands are 3 and 4.
Technical definition
An input expression to an operator.

Lesson 3

Operator
A symbol that works on values, such as + or *.
Technical definition
A token that combines operands: arithmetic, comparison, logical, assignment and others.

Lesson 3

Operator precedence
The rules that decide which part of an expression is worked out first.
Technical definition
Grammar-defined binding strength; ties are resolved by associativity.
4 + 6 * 2 // 16

Lesson 3

Optional chaining
The ?. operator, which returns undefined instead of throwing when the left side is null or undefined.
Technical definition
Introduced in Lesson 43: Optional chaining. See its professional explanation for engine-level detail.

Lesson 43

Outer environment
The scope that surrounds the current one in the source code.
Technical definition
Introduced in Lesson 47: Lexical environments. See its professional explanation for engine-level detail.

Lesson 47

Outer loop
The loop that contains another loop.
Technical definition
Introduced in Lesson 19: Nested loops and patterns. See its professional explanation for engine-level detail.

Lesson 19

Output
What a program shows as a result, for example lines in the console.
Technical definition
Observable effects: console messages, DOM changes, files, network responses.

Lesson 2

Parameter
A named input listed in a function definition.
Technical definition
Introduced in Lesson 22: Parameters and arguments. See its professional explanation for engine-level detail.

Lesson 22

Parameter destructuring
Destructuring an argument directly in a function's parameter list.
Technical definition
Introduced in Lesson 41: Destructuring. See its professional explanation for engine-level detail.

Lesson 41

Parentheses (grouping)
Brackets ( ) that make part of an expression happen first.
Technical definition
The grouping operator; it overrides precedence.
(4 + 6) * 2 // 20

Lesson 3

parseInt / parseFloat
Read a whole number / decimal from the start of a string.
Technical definition
Introduced in Lesson 10: Type conversion and type checking. See its professional explanation for engine-level detail.

Lesson 10

Pass by value
The function receives a copy of a primitive value.
Technical definition
Introduced in Lesson 22: Parameters and arguments. See its professional explanation for engine-level detail.

Lesson 22

Path
The sequence of keys and indexes that leads to a value, such as order.items[0].price.
Technical definition
Introduced in Lesson 38: Nested objects and arrays. See its professional explanation for engine-level detail.

Lesson 38

Pipeline
A sequence of steps where each step's output is the next step's input.
Technical definition
Introduced in Lesson 35: Combining array methods into processing pipelines. See its professional explanation for engine-level detail.

Lesson 35

Predicate
A function that returns true or false for one value.
Technical definition
Introduced in Lesson 33: filter and selection. See its professional explanation for engine-level detail.

Lesson 33

Private state
Data reachable only through the functions that close over it.
Technical definition
Introduced in Lesson 48: Closures. See its professional explanation for engine-level detail.

Lesson 48

Program
A list of instructions a computer carries out.
Technical definition
A Script or Module: a sequence of statements evaluated by the engine.

Lesson 2

Projection
Mapping objects to just the properties you need, such as names.
Technical definition
Introduced in Lesson 32: map and transformations. See its professional explanation for engine-level detail.

Lesson 32

Prompt
The instructions you give an AI assistant.
Technical definition
Input text that conditions a language model's output; good prompts state context, task, constraints and tests.

Lesson 137 planned

Property
A key and its value inside an object.
Technical definition
Introduced in Lesson 36: Creating JavaScript objects. See its professional explanation for engine-level detail.

Lesson 36

Pure function
A function that only uses its inputs and returns a result, without changing anything else.
Technical definition
A function without side effects whose output depends only on its arguments.

Lesson 25

push / pop
Add to or remove from the end of an array.
Technical definition
Introduced in Lesson 27: Adding and removing elements. See its professional explanation for engine-level detail.

Lesson 27

Quadratic time
Work that grows with the square of the input size, typical of nested loops over the same list.
Technical definition
Introduced in Lesson 19: Nested loops and patterns. See its professional explanation for engine-level detail.

Lesson 19

RangeError
A value is outside the allowed range.
Technical definition
Thrown when a numeric argument is outside its permitted range.
"ab".repeat(-1);

Lesson 5

reduce
Combines all elements into one value by repeatedly calling a function.
Technical definition
Introduced in Lesson 34: reduce and aggregation. See its professional explanation for engine-level detail.

Lesson 34

Reducer
The function that takes the accumulator and one element and returns the new accumulator.
Technical definition
Introduced in Lesson 34: reduce and aggregation. See its professional explanation for engine-level detail.

Lesson 34

Refactor
Improve how code is written without changing what it does.
Technical definition
Behaviour-preserving restructuring, protected by tests.

Lesson 95 planned

Reference
A pointer to an object in memory; copying it does not copy the object.
Technical definition
Introduced in Lesson 39: Object copying and reference behavior. See its professional explanation for engine-level detail.

Lesson 39

ReferenceError
The code uses a name that does not exist, often because of a typo.
Technical definition
Thrown when an identifier cannot be resolved or is in its temporal dead zone.
console.log(totl);

Lesson 5

Remainder
What is left over after division, found with %.
Technical definition
The % operator returns the remainder with the sign of the dividend.
10 % 4 // 2

Lesson 3

Render
Turning data into output that a person sees.
Technical definition
Introduced in Lesson 30: Building collection-based applications. See its professional explanation for engine-level detail.

Lesson 30

Reproduce
Make a bug happen again on purpose, so you can study it.
Technical definition
Establish a reliable sequence of steps that triggers the defect.

Lesson 5

Requirement
A statement of what the program must do.
Technical definition
Introduced in Lesson 15: Building decision-making applications. See its professional explanation for engine-level detail.

Lesson 15

Rest element
...name in a destructuring pattern, collecting the remaining items or properties.
Technical definition
Introduced in Lesson 42: Spread and rest syntax. See its professional explanation for engine-level detail.

Lesson 42

Rest parameter
...name collects remaining arguments into an array.
Technical definition
Introduced in Lesson 22: Parameters and arguments. See its professional explanation for engine-level detail.

Lesson 22

return statement
Ends the function and gives back a value.
Technical definition
Introduced in Lesson 23: Return values. See its professional explanation for engine-level detail.

Lesson 23

Return value
The value a function hands back when it finishes.
Technical definition
The completion value produced by a return statement (undefined by default).

Lesson 23

Run (execute)
To make the computer carry out a program's instructions.
Technical definition
Evaluation of the parsed program by the engine.

Lesson 2

Runtime error
An error that happens while the program is running.
Technical definition
An exception thrown during evaluation (as opposed to an early/parse error).

Lesson 5

Sandbox
A sealed-off area where code runs without access to the rest of the page or your data.
Technical definition
Here: a Worker inside an iframe with sandbox="allow-scripts" and no allow-same-origin, giving an opaque origin.

Lesson 1

Scope
The region of code where a variable is visible.
Technical definition
Introduced in Lesson 46: Global, function and block scope. See its professional explanation for engine-level detail.

Lesson 46

Scope chain
The sequence of outer scopes searched when a name is looked up.
Technical definition
Introduced in Lesson 47: Lexical environments. See its professional explanation for engine-level detail.

Lesson 47

Semicolon
The ; that ends a statement. Often optional, but commonly used for clarity.
Technical definition
Statement terminator; Automatic Semicolon Insertion fills in many omitted semicolons.

Lesson 3

Sentinel value
A special value, such as "quit" or -1, that signals a loop to stop.
Technical definition
Introduced in Lesson 17: While and do-while loops. See its professional explanation for engine-level detail.

Lesson 17

Set
A collection of unique values.
Technical definition
Introduced in Lesson 45: Sets, Maps and modern collection patterns. See its professional explanation for engine-level detail.

Lesson 45

Shadowing
An inner variable hiding an outer variable with the same name.
Technical definition
Introduced in Lesson 46: Global, function and block scope. See its professional explanation for engine-level detail.

Lesson 46

Shallow copy
A new top-level object whose nested objects are still shared.
Technical definition
Introduced in Lesson 39: Object copying and reference behavior. See its professional explanation for engine-level detail.

Lesson 39

Short-circuit
Stopping evaluation early once the result is known.
Technical definition
Introduced in Lesson 43: Optional chaining. See its professional explanation for engine-level detail.

Lesson 43

Short-circuit evaluation
Stopping a logical expression as soon as its result is known.
Technical definition
Introduced in Lesson 12: Logical operators. See its professional explanation for engine-level detail.

Lesson 12

Side effect
A change outside the function, such as printing or modifying a global.
Technical definition
Introduced in Lesson 23: Return values. See its professional explanation for engine-level detail.

Lesson 23

Single responsibility
A function should have one clear job.
Technical definition
Introduced in Lesson 25: Combining functions into applications. See its professional explanation for engine-level detail.

Lesson 25

slice
Returns a copy of part of an array without changing it.
Technical definition
Introduced in Lesson 27: Adding and removing elements. See its professional explanation for engine-level detail.

Lesson 27

some
True when at least one element passes the test.
Technical definition
Introduced in Lesson 33: filter and selection. See its professional explanation for engine-level detail.

Lesson 33

Source code
The text of a program as people write and read it.
Technical definition
The program text before parsing and compilation.

Lesson 2

splice
Removes or inserts elements at any index, changing the array.
Technical definition
Introduced in Lesson 27: Adding and removing elements. See its professional explanation for engine-level detail.

Lesson 27

Spread syntax
... used to expand an array or object into individual elements or properties.
Technical definition
Introduced in Lesson 42: Spread and rest syntax. See its professional explanation for engine-level detail.

Lesson 42

Stable sort
A sort that keeps equal elements in their original order.
Technical definition
Introduced in Lesson 28: Searching and sorting arrays. See its professional explanation for engine-level detail.

Lesson 28

Stack overflow
A RangeError when too many nested calls fill the call stack.
Technical definition
Introduced in Lesson 50: Understanding execution contexts. See its professional explanation for engine-level detail.

Lesson 50

Stack trace
The list of function calls that led to an error, with line numbers.
Technical definition
The error's stack property: frames from the throw site outwards.

Lesson 5

State
All the data an application remembers at a moment, such as the items in a cart.
Technical definition
The mutable data model from which the UI is derived.

Lesson 66 planned

Statement
A complete instruction, such as declaring a variable or printing something.
Technical definition
A syntactic unit of execution: declarations, expression statements, control flow.
let total = 0;

Lesson 3

Strict equality (===)
True when two values have the same type and value.
Technical definition
Introduced in Lesson 11: Comparison operators. See its professional explanation for engine-level detail.

Lesson 11

String
A piece of text, written in quotes: "Hello" or 'Hello'.
Technical definition
An immutable sequence of UTF-16 code units; one of the primitive types.
const name = "Ada";

Lesson 2 · Lesson 7

structuredClone
A built-in function that makes a deep copy of data.
Technical definition
Introduced in Lesson 39: Object copying and reference behavior. See its professional explanation for engine-level detail.

Lesson 39

switch
Compares one value with several cases and runs the matching one.
Technical definition
Introduced in Lesson 14: Switch statements and conditional expressions. See its professional explanation for engine-level detail.

Lesson 14

SyntaxError
The code breaks a grammar rule, so JavaScript cannot read it and nothing runs.
Technical definition
An early error raised while parsing the script.
console.log("missing bracket";

Lesson 5

Tap
A temporary step that logs a value without changing it, used for debugging.
Technical definition
Introduced in Lesson 35: Combining array methods into processing pipelines. See its professional explanation for engine-level detail.

Lesson 35

Template literal
A string written with backticks that can include values with ${ }.
Technical definition
A literal with substitutions and multi-line support, delimited by backticks.
`Total: ${total}`

Lesson 7

Temporal dead zone
The period before a let, const or class declaration runs, when accessing it throws a ReferenceError.
Technical definition
Introduced in Lesson 49: Hoisting and the temporal dead zone. See its professional explanation for engine-level detail.

Lesson 49

Test
A small check that runs code and compares what happens with what should happen.
Technical definition
An automated assertion of expected behaviour.

Lesson 5 · Lesson 116 planned

this
Inside a regular method, the object the method was called on.
Technical definition
Introduced in Lesson 37: Properties, methods and dynamic keys. See its professional explanation for engine-level detail.

Lesson 37

toFixed
Formats a number as a string with a fixed number of decimals.
Technical definition
Introduced in Lesson 8: Numbers and mathematical operations. See its professional explanation for engine-level detail.

Lesson 8

Transformation
Turning each input value into an output value.
Technical definition
Introduced in Lesson 32: map and transformations. See its professional explanation for engine-level detail.

Lesson 32

Truth table
A table listing the result of a logical operator for every combination of inputs.
Technical definition
Introduced in Lesson 12: Logical operators. See its professional explanation for engine-level detail.

Lesson 12

Truthy
A value that counts as true in a condition.
Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail.

Lesson 9

Type conversion
Changing a value from one type to another, such as text to number.
Technical definition
Introduced in Lesson 10: Type conversion and type checking. See its professional explanation for engine-level detail.

Lesson 10

TypeError
A value was used in a way its type does not allow.
Technical definition
Thrown when an operation is applied to a value of an inappropriate type.
const n = 5; n();

Lesson 5

typeof
An operator that tells you what kind of value something is.
Technical definition
Returns a string naming the operand's type ("number", "string", "object", …).
typeof 42 // "number"

Lesson 1 · Lesson 10

undefined
The value of something that has not been given a value.
Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail.

Lesson 9

Unique id
A value that identifies exactly one item in a collection.
Technical definition
Introduced in Lesson 30: Building collection-based applications. See its professional explanation for engine-level detail.

Lesson 30

Unit test
A check that one function returns the expected value for a given input.
Technical definition
Introduced in Lesson 25: Combining functions into applications. See its professional explanation for engine-level detail.

Lesson 25

unshift / shift
Add to or remove from the start of an array.
Technical definition
Introduced in Lesson 27: Adding and removing elements. See its professional explanation for engine-level detail.

Lesson 27

Variable
A named box that stores a value so you can use or change it later.
Technical definition
A binding between an identifier and a value in an environment record.
let score = 10;

Lesson 2 · Lesson 6

Vibe Learning
Laurence Svekis's learning approach: discover, predict, understand, experiment, build, test, explain, reflect, extend.
Technical definition
An active-learning cycle used throughout the academy.

Lesson 1

Web API
A feature a browser adds to JavaScript, such as changing the page or storing data.
Technical definition
Interfaces defined by web standards (WHATWG, W3C) and exposed by browser hosts.

Lesson 1

Web Worker
A background helper that runs JavaScript separately from the page, so heavy work does not freeze it.
Technical definition
A separate agent with its own global scope and event loop; communicates via postMessage; no DOM.

Lesson 1 · Lesson 97 planned

while loop
A loop that repeats while its condition is true, checking before each pass.
Technical definition
Introduced in Lesson 17: While and do-while loops. See its professional explanation for engine-level detail.

Lesson 17