Full-Stack Engineering Glossary

Frontend and backend

The frontend presents controls and state to a person; the backend enforces contracts and coordinates storage. Classifying responsibilities prevents an interface check from being mistaken for server authorization.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input.map(task => ({task, layer: task === "render" ? "frontend" : "backend"}));
}
Related lesson
Frontend and backend contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

[{"task":"render","layer":"frontend"},{"task":"validate","layer":"backend"}]
Related lesson
Frontend and backend boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The equality condition selects the opposite branch.

{"input":[],"expected":[]}
Related lesson
Browser and server

A browser and a server communicate by messages, not by sharing one JavaScript variable. A response can carry a copy of server data.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
const server = [...input];
const client = JSON.parse(JSON.stringify(server));
client.push("local draft");
return {serverCount:server.length,clientCount:client.length};
}
Related lesson
Browser and server contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

{"serverCount":1,"clientCount":2}
Related lesson
Browser and server boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The length property is misspelled, changing boundary calculations.

{"input":[],"expected":{"serverCount":0,"clientCount":1}}
Related lesson
HTTP fundamentals

HTTP requests have a method and target; responses have a status, headers and optional representation. A status is evidence about the request outcome, not proof that the body matches your schema.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input.map(status => ({status,ok:status>=200&&status<300,retryable:status===429||status>=500}));
}
Related lesson
HTTP fundamentals contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

[{"status":200,"ok":true,"retryable":false},{"status":404,"ok":false,"retryable":false}]
Related lesson
HTTP fundamentals boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The equality condition selects the opposite branch.

{"input":[],"expected":[]}
Related lesson
Application architecture

An application boundary has a responsibility and a contract. The view renders a response, the route validates an operation, and storage preserves accepted data.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input.map((name,index)=>({order:index+1,boundary:name}));
}
Related lesson
Application architecture contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

[{"order":1,"boundary":"view"},{"order":2,"boundary":"route"},{"order":3,"boundary":"store"}]
Related lesson
Application architecture boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

An arithmetic operation uses subtraction instead of addition.

{"input":[],"expected":[]}
Related lesson
First full-stack experiment

The opening task application connects a fetch call, a matched route, JSON parsing and DOM rendering. In local mode the route handler executes actual JavaScript through an educational adapter; no Node process or HTTP socket exists.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input.map(task=>task.title);
}
Related lesson
First full-stack experiment contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

["Learn JavaScript","Build an API"]
Related lesson
First full-stack experiment boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The result was discarded by an early return.

{"input":[],"expected":[]}
Related lesson
HTML document structure

The HTML doctype requests standards-mode rendering. It is not an HTML element and has no closing tag.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<!doctype html>
<html lang="en">
<head><title>Document structure</title></head>
<body><main><h1>A complete document</h1></main></body>
</html>
Related lesson
HTML document structure contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"A main landmark contains the page heading; the doctype requests standards mode."
Related lesson
HTML document structure boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"A main landmark contains the page heading; the doctype requests standards mode."
Related lesson
Semantic elements

Semantic elements describe purpose. main identifies the principal content; nav identifies navigation; article identifies a self-contained composition.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<main><h1>Field Notes</h1><article><h2>Designing a small page</h2><p>Start with the content.</p></article></main>
Related lesson
Semantic elements contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"A self-contained article is placed inside the principal content landmark."
Related lesson
Semantic elements boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"A self-contained article is placed inside the principal content landmark."
Related lesson
Forms

A form groups controls whose named values can be submitted. HTML alone does not deliver email or store a registration.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<form><label>Name <input name="name" autocomplete="name" required></label><button type="submit">Preview registration</button></form><p>No real data is sent in this example.</p>
Related lesson
Forms contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The button participates in native form submission, which the sandbox reports locally without sending data."
Related lesson
Forms boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The button participates in native form submission, which the sandbox reports locally without sending data."
Related lesson
Tables and data presentation

Tables express relationships between rows and columns. They are not a layout shortcut for entire pages.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<table><caption>Workshop prices</caption><thead><tr><th scope="col">Session</th><th scope="col">Price</th></tr></thead><tbody><tr><th scope="row">Basics</th><td>$30</td></tr></tbody></table>
Related lesson
Tables and data presentation contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The price belongs to a tabular data cell aligned with its session and column header."
Related lesson
Tables and data presentation boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The price belongs to a tabular data cell aligned with its session and column header."
Related lesson
Accessible markup

A useful form needs visible labels, clear instructions, error associations and a predictable submit path. Required state should be explained in words rather than indicated by color alone.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<form><label for="full-name">Full name (required)</label><input id="full-name" name="name" required aria-describedby="name-help"><p id="name-help">Enter the name for your certificate.</p><button>Preview certificate</button></form>
Related lesson
Accessible markup contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The visible label names the control and help text adds context without being the only name."
Related lesson
Accessible markup boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The visible label names the control and help text adds context without being the only name."
Related lesson
Selectors

A type selector matches element names, a class selector matches reusable class tokens, and an ID selector matches a unique identifier. Classes usually make reusable component styling easier than IDs.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<h1 id="page-title">Selector practice</h1><p class="highlight">A reusable highlight.</p><p>Unselected text.</p>
Related lesson
Selectors contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Only the paragraph with the matching class receives the background; the other paragraph remains unchanged."
Related lesson
Selectors boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Only the paragraph with the matching class receives the background; the other paragraph remains unchanged."
Related lesson
Box model

The box model separates content from internal padding, border and external margin. A background extends through padding by default but margin stays outside it.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<div class="box">A box with content</div>
Related lesson
Box model contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Twenty pixels of internal space separate content from its border; margin creates external separation."
Related lesson
Box model boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Twenty pixels of internal space separate content from its border; margin creates external separation."
Related lesson
Layout

A grid container creates a two-dimensional layout of tracks. Direct children become grid items, and grid-template-columns defines explicit columns.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<div class="layout"><article>Discover</article><article>Experiment</article><article>Build</article></div>
Related lesson
Layout contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The articles enter an explicit two-column grid; remaining items continue onto another row."
Related lesson
Layout boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The articles enter an explicit two-column grid; remaining items continue onto another row."
Related lesson
Responsive design

A media query conditionally applies rules according to the environment. Choose breakpoints where content needs them, not solely from device names.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<div class="layout"><article>Discover</article><article>Experiment</article><article>Build</article></div>
Related lesson
Responsive design contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The single-column default gains three columns only when the width condition matches."
Related lesson
Responsive design boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The single-column default gains three columns only when the width condition matches."
Related lesson
Interface styling

A card groups a coherent piece of content. Use article when it is independently meaningful and a plain wrapper when it is not.

DOM and stylesheet assertions are focused checks. Real layout, geometry, native interactions, zoom and assistive technology require supporting-browser review.

<section class="cards"><h1>Workshop options</h1><article class="card"><h2>Layout basics</h2><p>Learn flexible content structure.</p><a href="#details">View layout workshop</a></article><section id="details"><h2>Workshop details</h2></section></section>
Related lesson
Interface styling contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"A reusable card class owns the visual frame while its content retains headings and a meaningful link."
Related lesson
Interface styling boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"A reusable card class owns the visual frame while its content retains headings and a meaningful link."
Related lesson
Variables

Variables name values within a scope. A derived total should be computed from the supplied amount and quantity rather than stored as an unrelated mutable value.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
const price=input.price;
const quantity=input.quantity;
return price*quantity;
}
Related lesson
Variables contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

36
Related lesson
Variables boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The result was discarded by an early return.

{"input":{"price":0,"quantity":7},"expected":0}
Related lesson
Data types

JavaScript values carry runtime types. JSON supports only a subset of them, and null is distinct from a missing property.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input.map(value=>value===null?"null":Array.isArray(value)?"array":typeof value);
}
Related lesson
Data types contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

["null","number","string"]
Related lesson
Data types boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The equality condition selects the opposite branch.

{"input":[],"expected":[]}
Related lesson
Functions

A function states a reusable transformation with explicit input and output. Pure functions make tests independent of network timing and storage.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
function greeting(name){return "Hello, "+name.trim()+"!";}
return greeting(input);
}
Related lesson
Functions contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Hello, Alex!"
Related lesson
Functions boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

An arithmetic operation uses subtraction instead of addition.

{"input":"","expected":"Hello, !"}
Related lesson
Conditions

Conditions choose a branch according to a business rule. A boundary value such as zero must have an explicit outcome.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input>0?"available":input===0?"empty":"invalid";
}
Related lesson
Conditions contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"available"
Related lesson
Conditions boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The result was discarded by an early return.

{"input":0,"expected":"empty"}
Related lesson
Arrays and objects

Arrays preserve order and objects group named fields. Filtering creates a new array while map projects the accepted records into a useful result.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return input.filter(x=>x.done===false).map(x=>x.title);
}
Related lesson
Arrays and objects contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

["A"]
Related lesson
Arrays and objects boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The filtering operation was replaced by mapping, so rejected records remain in the output.

{"input":[],"expected":[]}
Related lesson
DOM selection

querySelector returns one first match; querySelectorAll returns a static NodeList of all matches at the time of the query. A selector that is valid CSS can still match nothing.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<ul><li class="record">Alex</li><li class="record">Sam</li><li>Taylor</li></ul><button id="select">Inspect selection</button><output id="result">Not inspected</output>
Related lesson
DOM selection contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The first .record is Alex and the static collection has two entries."
Related lesson
DOM selection boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The first .record is Alex and the static collection has two entries."
Related lesson
Updating elements

textContent replaces a node’s textual content without parsing the string as HTML. Replacing a container’s text also removes its existing child elements, which can remove controls and listeners.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<p>Status: <span id="status">Pending</span></p><button id="update">Complete task</button>
Related lesson
Updating elements contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Clicking the button changes only the status span to Complete."
Related lesson
Updating elements boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Clicking the button changes only the status span to Complete."
Related lesson
Creating elements

createElement creates a detached node; append inserts it into a tree. Construct user-visible text through textContent and provide a native remove button.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<button id="add">Add record</button><ul id="records"></ul>
Related lesson
Creating elements contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Add creates one li with a functioning Remove button; Remove deletes that li."
Related lesson
Creating elements boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Add creates one li with a functioning Remove button; Remove deletes that li."
Related lesson
Browser events

An event listener registers a function for a named event. Passing a function reference differs from calling that function during setup.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<button id="run">Run action</button><output id="count">0</output>
Related lesson
Browser events contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Two clicks invoke the registered handler twice and display 2."
Related lesson
Browser events boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Two clicks invoke the registered handler twice and display 2."
Related lesson
Interactive components

Tabs connect a tab list to mutually exclusive panels. Selecting a tab updates aria-selected, the roving tabindex and panel visibility together.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<div role="tablist" aria-label="Learning views"><button id="tab-one" role="tab" aria-selected="true" aria-controls="one" tabindex="0">Learn</button><button id="tab-two" role="tab" aria-selected="false" aria-controls="two" tabindex="-1">Practice</button></div><section id="one" role="tabpanel" aria-labelledby="tab-one">Read the explanation.</section><section id="two" role="tabpanel" aria-labelledby="tab-two" hidden>Try the experiment.</section>
Related lesson
Interactive components contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Selecting Practice reveals panel two and gives tab-two the selected entry point."
Related lesson
Interactive components boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Selecting Practice reveals panel two and gives tab-two the selected entry point."
Related lesson
Understanding state

Application state represents the domain facts independently of the rendered elements. Store a record with stable keys and update that record before rendering.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<button id="complete">Complete task</button><output id="status">Pending</output><pre id="state"></pre>
Related lesson
Understanding state contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The state record and visible status agree on Complete after activation."
Related lesson
Understanding state boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The state record and visible status agree on Complete after activation."
Related lesson
Rendering patterns

A render function derives all dependent presentation from state. If one event updates only the number and another updates only the button, the interface can contradict itself.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<button id="add">Add</button><output id="count">0</output><output id="remaining">2 remaining</output>
Related lesson
Rendering patterns contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"After two additions the count is 2, allowance is zero and Add is disabled."
Related lesson
Rendering patterns boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"After two additions the count is 2, allowance is zero and Add is disabled."
Related lesson
Form state

FormData reads successful named controls from a form. Disabled controls and unchecked checkboxes are not automatically included, and repeated names may require getAll.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<form id="booking"><label>Name<input name="name" value="Alex"></label><label>Seats<input name="seats" type="number" min="1" value="2"></label><button>Preview booking</button></form><output id="result">Waiting</output>
Related lesson
Form state contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The submitted named values render Alex / 2."
Related lesson
Form state boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The submitted named values render Alex / 2."
Related lesson
Local storage

localStorage stores strings within an origin and may be blocked, cleared or full. Scope keys to this application and remove only the owned key.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<button id="write">Write sample</button><button id="read">Read sample</button><button id="remove">Remove sample</button><output id="result">No operation</output>
Related lesson
Local storage contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"Write and Read report Sample; Remove affects only the namespaced key."
Related lesson
Local storage boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"Write and Read report Sample; Remove affects only the namespaced key."
Related lesson
Component organization

A reusable component owns a bounded root, state and event handlers. Resolve elements relative to that root so two instances do not update each other.

DOM structure and event results are testable offline. Geometry, native interaction and visual accessibility require a real browser review.

<section class="counter"><button>Add</button><output>0</output></section><section class="counter"><button>Add</button><output>0</output></section>
Related lesson
Component organization contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

"The second counter updates independently while the first remains zero."
Related lesson
Component organization boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code.

"The second counter updates independently while the first remains zero."
Related lesson
Promises

A promise represents an eventual outcome. Promise.all preserves input order even if individual operations finish in a different order.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
return await Promise.all(input.map(async value=>value*2));
}
Related lesson
Promises contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

[2,6]
Related lesson
Promises boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The result was discarded by an early return.

{"input":[],"expected":[]}
Related lesson
Async and await

async functions return promises and await resumes after a promise settles. Sequential await can express dependencies; independent work may be combined.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
const trace=["start"];
const value=await Promise.resolve(input);
trace.push(value,"end");
return trace;
}
Related lesson
Async and await contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

["start","data","end"]
Related lesson
Async and await boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

The result was discarded by an early return.

{"input":null,"expected":["start",null,"end"]}
Related lesson
Fetch

fetch separates transport success from HTTP status and body validation. The browser workbench provides a labeled local fetch adapter, while the optional live mode makes a permitted actual request.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
if(!input.ok)return {error:"HTTP "+input.status};
try{return {value:JSON.parse(input.body)};}catch{return {error:"Malformed JSON"};}
}
Related lesson
Fetch contract

The explicit input and independently expected output for this lesson.

A passing fixture is bounded evidence; it does not prove all inputs or runtime conditions.

{"value":[1,2]}
Related lesson
Fetch boundary case

A changed, empty or invalid input that distinguishes a common mistake from the intended behavior.

Serialization was used where parsing was required.

{"input":{"ok":true,"status":200,"body":"bad"},"expected":{"error":"Malformed JSON"}}
Related lesson
Loading states

Loading, success, empty and error are different UI states. Render them from explicit state instead of inferring them from unrelated DOM text.

Actual JavaScript calculation on supplied inputs; any Node, HTTP, database or security policy shown here is an explicitly limited educational model, not a real server operation.

async function main(input) {
if(input.pending)return "loading";
if(input.error)return "error";
return input.items.length?"success":"empty";
}
Related lesson
Programming

Writing instructions that a computer can execute.

Writing instructions that a computer can execute. The example shows its use in JavaScript source.

console.log("Hello");
Related lesson
Program

A collection of instructions intended to accomplish a task.

A collection of instructions intended to accomplish a task. The example shows its use in JavaScript source.

console.log(2 + 3);
Related lesson
Source code

The human-readable text of a program.

The human-readable text of a program. The example shows its use in JavaScript source.

let score = 1;
Related lesson
Instruction

An operation described by source code.

An operation described by source code. The example shows its use in JavaScript source.

console.log("Run");
Related lesson
Statement

A complete syntactic unit such as a declaration or expression statement.

A complete syntactic unit such as a declaration or expression statement. The example shows its use in JavaScript source.

let total = 5;
Related lesson
Expression

Source that evaluates to a value.

Source that evaluates to a value. The example shows its use in JavaScript source.

5 * 3
Related lesson
Value

A piece of data that a program can use.

A piece of data that a program can use. The example shows its use in JavaScript source.

42
Related lesson
Syntax

The grammatical rules for valid source code.

The grammatical rules for valid source code. The example shows its use in JavaScript source.

console.log("Hello");
Related lesson
Comment

Source text ignored during execution and intended for readers.

Source text ignored during execution and intended for readers. The example shows its use in JavaScript source.

// Explain the rule.
Related lesson
Identifier

A name used to refer to a binding or other program entity.

A name used to refer to a binding or other program entity. The example shows its use in JavaScript source.

itemsInCart
Related lesson
Keyword

A word reserved for a language construct.

A word reserved for a language construct. The example shows its use in JavaScript source.

const
Related lesson
Semicolon

A statement separator or terminator in source syntax.

A statement separator or terminator in source syntax. The example shows its use in JavaScript source.

let x = 1;
Related lesson
Parentheses

Symbols used for grouping or call argument lists.

Symbols used for grouping or call argument lists. The example shows its use in JavaScript source.

(5 + 2) * 3
Related lesson
Brace

A symbol used to delimit blocks or object literals.

A symbol used to delimit blocks or object literals. The example shows its use in JavaScript source.

if (true) { console.log("yes"); }
Related lesson
Bracket

A symbol used in array literals or property access.

A symbol used in array literals or property access. The example shows its use in JavaScript source.

items[0]
Related lesson
Literal

Source syntax directly representing a value.

Source syntax directly representing a value. The example shows its use in JavaScript source.

"Hello"
Related lesson
Console

A diagnostic interface where programs record messages.

A diagnostic interface where programs record messages. The example shows its use in JavaScript source.

console.log("Ready");
Related lesson
Output

An observable result produced by execution.

An observable result produced by execution. The example shows its use in JavaScript source.

console.log(15);
Related lesson
Input

Data supplied to a program or function.

Data supplied to a program or function. The example shows its use in JavaScript source.

greet("Alex")
Related lesson
Algorithm

A defined sequence of steps for solving a problem.

A defined sequence of steps for solving a problem. The example shows its use in JavaScript source.

Read numbers, add them, display the sum.
Related lesson
Variable

A named binding used to access a value.

A named binding used to access a value. The example shows its use in JavaScript source.

let score = 3;
Related lesson
Binding

The association between a name and a value.

The association between a name and a value. The example shows its use in JavaScript source.

const title = "Course";
Related lesson
Declaration

Syntax that introduces a binding.

Syntax that introduces a binding. The example shows its use in JavaScript source.

let count;
Related lesson
Assignment

An operation that stores a value in an existing binding.

An operation that stores a value in an existing binding. The example shows its use in JavaScript source.

count = 2;
Related lesson
Reassignment

Replacing the value associated with a binding.

Replacing the value associated with a binding. The example shows its use in JavaScript source.

count = 3;
Related lesson
let

A block-scoped declaration that allows reassignment.

A block-scoped declaration that allows reassignment. The example shows its use in JavaScript source.

let count = 0;
Related lesson
const

A block-scoped declaration that prevents reassignment of its binding.

A block-scoped declaration that prevents reassignment of its binding. The example shows its use in JavaScript source.

const rate = 0.1;
Related lesson
var

An older function-scoped declaration with hoisting behavior.

An older function-scoped declaration with hoisting behavior. The example shows its use in JavaScript source.

var legacy = 1;
Related lesson
Data type

A category describing what a value is and which operations apply.

A category describing what a value is and which operations apply. The example shows its use in JavaScript source.

typeof 5
Related lesson
String

A primitive sequence of UTF-16 code units representing text.

A primitive sequence of UTF-16 code units representing text. The example shows its use in JavaScript source.

"JavaScript"
Related lesson
Number

The standard numeric type using floating-point representation.

The standard numeric type using floating-point representation. The example shows its use in JavaScript source.

3.5
Related lesson
Boolean

A primitive logical value, either true or false.

A primitive logical value, either true or false. The example shows its use in JavaScript source.

true
Related lesson
null

An explicit primitive value often representing intentional absence.

An explicit primitive value often representing intentional absence. The example shows its use in JavaScript source.

const selected = null;
Related lesson
undefined

A primitive often observed when a value was not supplied or returned.

A primitive often observed when a value was not supplied or returned. The example shows its use in JavaScript source.

let pending;
Related lesson
NaN

A numeric value representing an invalid numeric result.

A numeric value representing an invalid numeric result. The example shows its use in JavaScript source.

Number("not a number")
Related lesson
Infinity

A numeric value beyond finite magnitude.

A numeric value beyond finite magnitude. The example shows its use in JavaScript source.

1 / 0
Related lesson
BigInt

An integer numeric type for arbitrarily large whole values.

An integer numeric type for arbitrarily large whole values. The example shows its use in JavaScript source.

123n
Related lesson
Symbol

A primitive value with unique identity, often used as a property key.

A primitive value with unique identity, often used as a property key. The example shows its use in JavaScript source.

Symbol("id")
Related lesson
Primitive

A non-object value such as a string, number or Boolean.

A non-object value such as a string, number or Boolean. The example shows its use in JavaScript source.

typeof "text"
Related lesson
Type conversion

Creating a representation of a value in another type.

Creating a representation of a value in another type. The example shows its use in JavaScript source.

Number("12")
Related lesson
Coercion

Conversion performed implicitly by a language operation.

Conversion performed implicitly by a language operation. The example shows its use in JavaScript source.

"5" + 2
Related lesson
Truthy

A value that becomes true in Boolean context.

A value that becomes true in Boolean context. The example shows its use in JavaScript source.

Boolean("hello")
Related lesson
Falsy

A value that becomes false in Boolean context.

A value that becomes false in Boolean context. The example shows its use in JavaScript source.

Boolean("")
Related lesson
Immutability

The property of a value that cannot be changed in place.

The property of a value that cannot be changed in place. The example shows its use in JavaScript source.

"text".toUpperCase()
Related lesson
Mutation

Changing the contents of an existing object or array.

Changing the contents of an existing object or array. The example shows its use in JavaScript source.

items.push("new");
Related lesson
State

The current values relevant to an application.

The current values relevant to an application. The example shows its use in JavaScript source.

let count = 0;
Related lesson
Reference

An identity-bearing relationship to an object value.

An identity-bearing relationship to an object value. The example shows its use in JavaScript source.

const other = original;
Related lesson
Shallow copy

A new outer object that still shares nested referenced values.

A new outer object that still shares nested referenced values. The example shows its use in JavaScript source.

const copy = {...original};
Related lesson
Deep copy

A copy that recreates supported nested data rather than sharing it.

A copy that recreates supported nested data rather than sharing it. The example shows its use in JavaScript source.

structuredClone(record)
Related lesson
Serialization

Converting a supported value into a transport representation.

Converting a supported value into a transport representation. The example shows its use in JavaScript source.

JSON.stringify(record)
Related lesson
Condition

An expression used to select a control-flow branch.

An expression used to select a control-flow branch. The example shows its use in JavaScript source.

score >= 5
Related lesson
Branch

One possible path chosen by control flow.

One possible path chosen by control flow. The example shows its use in JavaScript source.

if (ready) { run(); }
Related lesson
Loop

A construct that repeats operations while its rule allows it.

A construct that repeats operations while its rule allows it. The example shows its use in JavaScript source.

for (let i = 0; i < 3; i++) {}
Related lesson
Iteration

One pass through a loop body.

One pass through a loop body. The example shows its use in JavaScript source.

console.log(i);
Related lesson
Accumulator

A value carrying a running result across iterations.

A value carrying a running result across iterations. The example shows its use in JavaScript source.

sum += value;
Related lesson
Counter

A binding that tracks a changing count or position.

A binding that tracks a changing count or position. The example shows its use in JavaScript source.

i++
Related lesson
Infinite loop

Repetition whose stopping condition is never reached.

Repetition whose stopping condition is never reached. The example shows its use in JavaScript source.

while (true) {}
Related lesson
Function

A callable unit of reusable behavior.

A callable unit of reusable behavior. The example shows its use in JavaScript source.

function double(n) { return n * 2; }
Related lesson
Parameter

A binding declared to receive a function argument.

A binding declared to receive a function argument. The example shows its use in JavaScript source.

function greet(name) {}
Related lesson
Argument

A value supplied in a call.

A value supplied in a call. The example shows its use in JavaScript source.

greet("Alex")
Related lesson
Return value

The result given by a function to its caller.

The result given by a function to its caller. The example shows its use in JavaScript source.

return total;
Related lesson
Callback

A function supplied to another operation for later or repeated invocation.

A function supplied to another operation for later or repeated invocation. The example shows its use in JavaScript source.

items.map(double)
Related lesson
Arrow function

A function expression using arrow syntax and lexical this.

A function expression using arrow syntax and lexical this. The example shows its use in JavaScript source.

n => n * 2
Related lesson
Scope

The region in which a binding can be accessed.

The region in which a binding can be accessed. The example shows its use in JavaScript source.

{ let local = 1; }
Related lesson
Block scope

Visibility limited to the enclosing block.

Visibility limited to the enclosing block. The example shows its use in JavaScript source.

if (true) { let x = 1; }
Related lesson
Global scope

The outer scope for a script environment.

The outer scope for a script environment. The example shows its use in JavaScript source.

globalThis
Related lesson
Local scope

A scope belonging to an inner function or block.

A scope belonging to an inner function or block. The example shows its use in JavaScript source.

function f() { const local = 1; }
Related lesson
Closure

A function retaining access to bindings from its creation environment.

A function retaining access to bindings from its creation environment. The example shows its use in JavaScript source.

function make(n) { return () => n; }
Related lesson
Call stack

The active sequence of function calls waiting to finish.

The active sequence of function calls waiting to finish. The example shows its use in JavaScript source.

outer() calls inner()
Related lesson
Stack frame

The execution context of a particular active function call.

The execution context of a particular active function call. The example shows its use in JavaScript source.

double(4)
Related lesson
Recursion

A function invoking itself with a defined stopping case.

A function invoking itself with a defined stopping case. The example shows its use in JavaScript source.

factorial(n - 1)
Related lesson
Base case

A condition that stops a recursive calculation.

A condition that stops a recursive calculation. The example shows its use in JavaScript source.

if (n === 0) return 1;
Related lesson
Pure function

A function whose result depends on arguments and does not mutate external state.

A function whose result depends on arguments and does not mutate external state. The example shows its use in JavaScript source.

n => n * 2
Related lesson
Side effect

An observable change outside a function’s returned value.

An observable change outside a function’s returned value. The example shows its use in JavaScript source.

element.textContent = "Updated";
Related lesson
Hoisting

The observable early establishment of certain declarations in a scope.

The observable early establishment of certain declarations in a scope. The example shows its use in JavaScript source.

function declarations can be called before their source position
Related lesson
Temporal dead zone

The region before a lexical binding is initialized where access throws.

The region before a lexical binding is initialized where access throws. The example shows its use in JavaScript source.

console.log(x); let x = 1;
Related lesson
Destructuring

Syntax extracting values from arrays or object properties.

Syntax extracting values from arrays or object properties. The example shows its use in JavaScript source.

const {name} = person;
Related lesson
Spread syntax

Syntax expanding iterable elements or copying object properties.

Syntax expanding iterable elements or copying object properties. The example shows its use in JavaScript source.

[...items]
Related lesson
Rest parameter

A parameter collecting remaining arguments into an array.

A parameter collecting remaining arguments into an array. The example shows its use in JavaScript source.

function sum(...values) {}
Related lesson
Default parameter

An initializer used when an argument is undefined.

An initializer used when an argument is undefined. The example shows its use in JavaScript source.

function greet(name = "friend") {}
Related lesson
Array

An ordered, indexed object commonly used as a collection.

An ordered, indexed object commonly used as a collection. The example shows its use in JavaScript source.

["Learn", "Build"]
Related lesson
Index

A numeric position used to access an array element.

A numeric position used to access an array element. The example shows its use in JavaScript source.

items[0]
Related lesson
Element

A value stored at an array position.

A value stored at an array position. The example shows its use in JavaScript source.

items[1]
Related lesson
Length

The array boundary or string code-unit count reported by length.

The array boundary or string code-unit count reported by length. The example shows its use in JavaScript source.

items.length
Related lesson
Object

A value that groups named properties and has identity.

A value that groups named properties and has identity. The example shows its use in JavaScript source.

{name: "Alex"}
Related lesson
Property

A key-value association on an object.

A key-value association on an object. The example shows its use in JavaScript source.

person.name
Related lesson
Key

A string or symbol identifying an object property.

A string or symbol identifying an object property. The example shows its use in JavaScript source.

"name"
Related lesson
Method

A callable property associated with an object.

A callable property associated with an object. The example shows its use in JavaScript source.

text.trim()
Related lesson
Prototype

An object consulted during inherited property lookup.

An object consulted during inherited property lookup. The example shows its use in JavaScript source.

Object.getPrototypeOf(record)
Related lesson
Class

Syntax for defining construction and prototype-based behavior.

Syntax for defining construction and prototype-based behavior. The example shows its use in JavaScript source.

class Counter {}
Related lesson
Instance

An object created with a particular constructor.

An object created with a particular constructor. The example shows its use in JavaScript source.

new Counter()
Related lesson
Constructor

A function used to initialize an object through new.

A function used to initialize an object through new. The example shows its use in JavaScript source.

constructor(name) { this.name = name; }
Related lesson
this

A binding whose value depends on the call form, except lexical arrows.

A binding whose value depends on the call form, except lexical arrows. The example shows its use in JavaScript source.

this.name
Related lesson
Getter

An accessor invoked when a property is read.

An accessor invoked when a property is read. The example shows its use in JavaScript source.

get total() { return this.price * this.qty; }
Related lesson
Setter

An accessor invoked when a property is assigned.

An accessor invoked when a property is assigned. The example shows its use in JavaScript source.

set value(n) { this._value = n; }
Related lesson
Static method

A method available on the class constructor rather than instances.

A method available on the class constructor rather than instances. The example shows its use in JavaScript source.

Math.abs(-2)
Related lesson
Map collection

A keyed collection supporting arbitrary value keys.

A keyed collection supporting arbitrary value keys. The example shows its use in JavaScript source.

new Map()
Related lesson
Set collection

A collection of unique values.

A collection of unique values. The example shows its use in JavaScript source.

new Set([1,1,2])
Related lesson
Iterable

A value providing an iterator used by constructs such as for...of.

A value providing an iterator used by constructs such as for...of. The example shows its use in JavaScript source.

for (const item of items) {}
Related lesson
Iterator

An object producing successive values with next().

An object producing successive values with next(). The example shows its use in JavaScript source.

items.values()
Related lesson
HTML

The markup language describing webpage structure and content.

The markup language describing webpage structure and content. The example shows its use in JavaScript source.

<button>Run</button>
Related lesson
CSS

The styling language describing webpage presentation.

The styling language describing webpage presentation. The example shows its use in JavaScript source.

button { color: green; }
Related lesson
DOM

The document tree exposed as objects to browser JavaScript.

The document tree exposed as objects to browser JavaScript. The example shows its use in JavaScript source.

document.body
Related lesson
Node

An object participating in a document tree.

An object participating in a document tree. The example shows its use in JavaScript source.

element.firstChild
Related lesson
Element node

A node representing an HTML or SVG element.

A node representing an HTML or SVG element. The example shows its use in JavaScript source.

document.createElement("p")
Related lesson
Text node

A node containing literal document text.

A node containing literal document text. The example shows its use in JavaScript source.

document.createTextNode("Hello")
Related lesson
Attribute

A named markup setting associated with an element.

A named markup setting associated with an element. The example shows its use in JavaScript source.

id="result"
Related lesson
Selector

A pattern used to locate matching elements.

A pattern used to locate matching elements. The example shows its use in JavaScript source.

#result
Related lesson
Event

An occurrence dispatched to an event target.

An occurrence dispatched to an event target. The example shows its use in JavaScript source.

click
Related lesson
Event listener

A registered callback invoked for a specified event.

A registered callback invoked for a specified event. The example shows its use in JavaScript source.

button.addEventListener("click", handler)
Related lesson
Event target

The node where an event originated.

The node where an event originated. The example shows its use in JavaScript source.

event.target
Related lesson
Current target

The object whose listener is currently running.

The object whose listener is currently running. The example shows its use in JavaScript source.

event.currentTarget
Related lesson
Bubbling

Propagation of an event through ancestor targets after its target phase.

Propagation of an event through ancestor targets after its target phase. The example shows its use in JavaScript source.

A button click reaches its parent listener.
Related lesson
Capture phase

The propagation phase traveling toward the target before bubbling.

The propagation phase traveling toward the target before bubbling. The example shows its use in JavaScript source.

addEventListener("click", handler, true)
Related lesson
Delegation

Handling child actions using an ancestor listener.

Handling child actions using an ancestor listener. The example shows its use in JavaScript source.

list.addEventListener("click", handler)
Related lesson
Default action

A browser behavior associated with an event, such as form navigation.

A browser behavior associated with an event, such as form navigation. The example shows its use in JavaScript source.

event.preventDefault()
Related lesson
Form validation

Checking whether submitted field values satisfy constraints.

Checking whether submitted field values satisfy constraints. The example shows its use in JavaScript source.

input.checkValidity()
Related lesson
Accessibility

Designing functionality usable by people with varied access needs.

Designing functionality usable by people with varied access needs. The example shows its use in JavaScript source.

Use a labeled native button.
Related lesson
Accessible name

The label exposed for an interactive element to accessibility APIs.

The label exposed for an interactive element to accessibility APIs. The example shows its use in JavaScript source.

aria-label="Increase count"
Related lesson
Focus

The current keyboard interaction target.

The current keyboard interaction target. The example shows its use in JavaScript source.

input.focus()
Related lesson
Live region

An area whose updates can be announced by assistive technology.

An area whose updates can be announced by assistive technology. The example shows its use in JavaScript source.

role="status"
Related lesson
Rendering

Producing visible interface content from current state.

Producing visible interface content from current state. The example shows its use in JavaScript source.

render(records)
Related lesson
Component

A bounded reusable unit of interface structure and behavior.

A bounded reusable unit of interface structure and behavior. The example shows its use in JavaScript source.

createCounter(container)
Related lesson
Persistence

Retaining data across a page or application session.

Retaining data across a page or application session. The example shows its use in JavaScript source.

localStorage.setItem(key, text)
Related lesson
Origin

The scheme, host and port used to isolate browser resources.

The scheme, host and port used to isolate browser resources. The example shows its use in JavaScript source.

https://example.test:443
Related lesson
Sandbox

A restricted environment limiting the capabilities of executed content.

A restricted environment limiting the capabilities of executed content. The example shows its use in JavaScript source.

<iframe sandbox="allow-scripts">
Related lesson
Web Worker

A separate execution context suited to non-DOM JavaScript work.

A separate execution context suited to non-DOM JavaScript work. The example shows its use in JavaScript source.

new Worker(url)
Related lesson
IndexedDB

An asynchronous browser database for structured local data.

An asynchronous browser database for structured local data. The example shows its use in JavaScript source.

indexedDB.open("academy", 1)
Related lesson
localStorage

A per-origin string-keyed browser storage interface.

A per-origin string-keyed browser storage interface. The example shows its use in JavaScript source.

localStorage.getItem("draft")
Related lesson
Responsive layout

An interface adapting to different available display sizes.

An interface adapting to different available display sizes. The example shows its use in JavaScript source.

@media (max-width: 600px) {}
Related lesson
Synchronous

Execution that proceeds in the current call sequence before returning control.

Execution that proceeds in the current call sequence before returning control. The example shows its use in JavaScript source.

console.log("A"); console.log("B");
Related lesson
Asynchronous

Behavior whose result is delivered after the current sequence yields.

Behavior whose result is delivered after the current sequence yields. The example shows its use in JavaScript source.

setTimeout(handler, 0)
Related lesson
Promise

An object representing eventual fulfillment or rejection.

An object representing eventual fulfillment or rejection. The example shows its use in JavaScript source.

Promise.resolve(5)
Related lesson
Fulfillment

Successful settlement of a promise with a value.

Successful settlement of a promise with a value. The example shows its use in JavaScript source.

resolve(value)
Related lesson
Rejection

Settlement of a promise with a failure reason.

Settlement of a promise with a failure reason. The example shows its use in JavaScript source.

reject(error)
Related lesson
Pending

The unsettled state of a promise.

The unsettled state of a promise. The example shows its use in JavaScript source.

new Promise(() => {})
Related lesson
async function

A function whose call returns a promise.

A function whose call returns a promise. The example shows its use in JavaScript source.

async function load() { return 1; }
Related lesson
await

Syntax that suspends an async evaluation until a value’s promise settles.

Syntax that suspends an async evaluation until a value’s promise settles. The example shows its use in JavaScript source.

const result = await load();
Related lesson
Task

A unit scheduled to run after the current task yields.

A unit scheduled to run after the current task yields. The example shows its use in JavaScript source.

A timer callback is a task.
Related lesson
Microtask

A scheduled job drained at microtask checkpoints.

A scheduled job drained at microtask checkpoints. The example shows its use in JavaScript source.

Promise.resolve().then(handler)
Related lesson
Event loop

The scheduling process coordinating tasks, microtasks and rendering opportunities.

The scheduling process coordinating tasks, microtasks and rendering opportunities. The example shows its use in JavaScript source.

A, D, C, B in the prepared example
Related lesson
Timer

An API scheduling a callback no earlier than a requested delay.

An API scheduling a callback no earlier than a requested delay. The example shows its use in JavaScript source.

setTimeout(handler, 100)
Related lesson
API

A defined interface through which software requests data or behavior.

A defined interface through which software requests data or behavior. The example shows its use in JavaScript source.

fetch(url)
Related lesson
HTTP

The request/response protocol used for web resources.

The request/response protocol used for web resources. The example shows its use in JavaScript source.

GET /courses
Related lesson
Request

A message asking a service for a resource or action.

A message asking a service for a resource or action. The example shows its use in JavaScript source.

fetch("/data")
Related lesson
Response

The result message returned by a request operation.

The result message returned by a request operation. The example shows its use in JavaScript source.

response.status
Related lesson
Status code

A numeric indication of an HTTP outcome.

A numeric indication of an HTTP outcome. The example shows its use in JavaScript source.

404
Related lesson
Header

Metadata associated with a request or response.

Metadata associated with a request or response. The example shows its use in JavaScript source.

Content-Type: application/json
Related lesson
JSON

A text format for structured values with restricted syntax.

A text format for structured values with restricted syntax. The example shows its use in JavaScript source.

{"title":"Course"}
Related lesson
CORS

Browser-enforced cross-origin access rules for response visibility.

Browser-enforced cross-origin access rules for response visibility. The example shows its use in JavaScript source.

Access-Control-Allow-Origin
Related lesson