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. - 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. - 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. - 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. - 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. - 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. - 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];
- 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. - 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. - Arrow function
- A compact function expression written with =>.
Technical definition
Introduced in Lesson 24: Arrow functions. See its professional explanation for engine-level detail. - 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;
- 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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
- 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. - 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. - 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. - 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. - Concatenation
- Joining strings together with +.
Technical definition
String concatenation via the + operator when either operand is a string after ToPrimitive."Java" + "Script" // "JavaScript"
- 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. - 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.- 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); - 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"); - console.group
- Indents the following console lines until console.groupEnd().
Technical definition
Starts a new inline group in the console log. - 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); - 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 }]); - console.warn
- Prints a warning, usually shown in yellow.
Technical definition
Logs at the warn level.console.warn("Low stock"); - 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;
- 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - Error message
- The text that explains what went wrong.
Technical definition
The message property of an Error object. - 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. - 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. - 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. - Exponent operator (**)
- Raises a number to a power:
3 ** 2is 9.Technical definition
Introduced in Lesson 8: Numbers and mathematical operations. See its professional explanation for engine-level detail. - Expression
- Code that produces a value, such as 3 + 4.
Technical definition
Any syntactic construct that evaluates to a value.price * quantity
- 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"); - 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. - 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. - 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. - 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. - 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. - 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. - 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
- 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. - 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. - 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. - 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. - 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; } - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - Identifier
- The name you give a variable or function.
Technical definition
A name token matching IdentifierName rules; case-sensitive. - 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. - 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. - 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. - 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. - 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. - Increment (i++)
- Adds one to a variable.
Technical definition
Introduced in Lesson 16: For loops. See its professional explanation for engine-level detail. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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"); - 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. - 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. - 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. - 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); - 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. - 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;
- 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - Logical AND (&&)
- True when both conditions are true.
Technical definition
Introduced in Lesson 12: Logical operators. See its professional explanation for engine-level detail. - 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. - Logical NOT (!)
- Flips a value's truthiness:
!trueis false.Technical definition
Introduced in Lesson 9: Booleans, null and undefined. See its professional explanation for engine-level detail. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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
- 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - Nullish
- Either null or undefined.
Technical definition
Introduced in Lesson 43: Optional chaining. See its professional explanation for engine-level detail. - 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. - 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;
- 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. - 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 }; - 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. - 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. - 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. - Operand
- A value an operator works on: in 3 + 4, the operands are 3 and 4.
Technical definition
An input expression to an operator. - Operator
- A symbol that works on values, such as + or *.
Technical definition
A token that combines operands: arithmetic, comparison, logical, assignment and others. - 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
- 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. - 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. - 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. - 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. - 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. - 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. - Parentheses (grouping)
- Brackets ( ) that make part of an expression happen first.
Technical definition
The grouping operator; it overrides precedence.(4 + 6) * 2 // 20
- 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. - 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. - 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. - 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. - 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. - 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. - Program
- A list of instructions a computer carries out.
Technical definition
A Script or Module: a sequence of statements evaluated by the engine. - 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. - 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. - 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. - 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. - 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. - RangeError
- A value is outside the allowed range.
Technical definition
Thrown when a numeric argument is outside its permitted range."ab".repeat(-1);
- 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. - 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. - 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. - 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);
- 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
- 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. - 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. - 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. - 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. - 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. - 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. - Return value
- The value a function hands back when it finishes.
Technical definition
The completion value produced by a return statement (undefined by default). - Run (execute)
- To make the computer carry out a program's instructions.
Technical definition
Evaluation of the parsed program by the engine. - 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). - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - Source code
- The text of a program as people write and read it.
Technical definition
The program text before parsing and compilation. - 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. - 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. - 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. - 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. - 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. - 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;
- 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. - 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";
- 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. - 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. - 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"; - 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. - 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}` - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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();
- 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"
- 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. - 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. - 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. - 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. - 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;
- 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. - 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. - 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.