25 Prepared Demonstration Scripts
These are reproducible presenter/recording scripts, not rendered video files.
First full-stack experiment
5 minutes; prepared recording script, not a rendered video
{
"lesson": 5,
"example": 0,
"input": [
{
"id": 1,
"title": "Learn JavaScript"
},
{
"id": 2,
"title": "Build an API"
}
],
"source": "async function main(input) {\nreturn input.map(task=>task.title);\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 5. Reset its primary example.",
"narration": "What evidence would show that first full-stack experiment works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "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. Use the request workbench to change data or cause a 404, then compare the displayed trace."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The result was discarded by an early return."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[ "Learn JavaScript", "Build an API" ]
Reset the selected example after confirmation; it restores source and fixture inputs.
Tables and data presentation
5 minutes; prepared recording script, not a rendered video
{
"lesson": 9,
"example": 0,
"files": {
"index.html": "<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>",
"styles.css": "th, td { border: 1px solid #9ba8b8; padding: .5rem; }",
"script.js": "",
"assets/landscape.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkxheWVyZWQgbGFuZHNjYXBlPC90aXRsZT48cmVjdCB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCIgZmlsbD0iI2UyZWRmOCIvPjxjaXJjbGUgY3g9IjQ5MCIgY3k9Ijk1IiByPSI0NSIgZmlsbD0iI2ZmZjRjNCIvPjxwYXRoIGQ9Ik0wIDI4NSAxNzAgMTIwIDM1MCAyOTUgNTAwIDE4NSA2NDAgMjg1VjQwMEgwWiIgZmlsbD0iIzgxYTljZSIvPjxwYXRoIGQ9Ik0wIDMzNSAyMjAgMjMwIDQyMCAzNTAgNjQwIDI0MFY0MDBIMFoiIGZpbGw9IiMyOTUyN2IiLz48L3N2Zz4=",
"assets/shapes.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkdlb21ldHJpYyBzdHVkeTwvdGl0bGU+PHJlY3Qgd2lkdGg9IjY0MCIgaGVpZ2h0PSI0MDAiIGZpbGw9IiNmMmVlZTUiLz48Y2lyY2xlIGN4PSIyMjAiIGN5PSIxOTAiIHI9IjEwMCIgZmlsbD0iI2Q3OTQ1NCIvPjxyZWN0IHg9IjMyMCIgeT0iMTEwIiB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjMwIiBmaWxsPSIjMzE1ZDdmIi8+PHBhdGggZD0ibTEwMCAzMzAgMTIwLTE2MCAxMjAgMTYwWiIgZmlsbD0iI2UxYzc3OSIvPjwvc3ZnPg=="
}
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 9. Reset its primary example.",
"narration": "What evidence would show that tables and data presentation works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Tables express relationships between rows and columns. They are not a layout shortcut for entire pages. tr groups a row; th identifies a header cell and td a data cell. The browser may insert tbody when parsing. Check the DOM and use a caption to explain what the numbers represent. For narrow screens, allow a meaningful table to scroll rather than destroying its relationships."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
The price belongs to a tabular data cell aligned with its session and column header.
Reset the selected example after confirmation; it restores source and fixture inputs.
Layout
5 minutes; prepared recording script, not a rendered video
{
"lesson": 13,
"example": 0,
"files": {
"index.html": "<div class=\"layout\"><article>Discover</article><article>Experiment</article><article>Build</article></div>",
"styles.css": ".layout { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; } article { padding:1rem; background:#e8eef7; }",
"script.js": "",
"assets/landscape.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkxheWVyZWQgbGFuZHNjYXBlPC90aXRsZT48cmVjdCB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCIgZmlsbD0iI2UyZWRmOCIvPjxjaXJjbGUgY3g9IjQ5MCIgY3k9Ijk1IiByPSI0NSIgZmlsbD0iI2ZmZjRjNCIvPjxwYXRoIGQ9Ik0wIDI4NSAxNzAgMTIwIDM1MCAyOTUgNTAwIDE4NSA2NDAgMjg1VjQwMEgwWiIgZmlsbD0iIzgxYTljZSIvPjxwYXRoIGQ9Ik0wIDMzNSAyMjAgMjMwIDQyMCAzNTAgNjQwIDI0MFY0MDBIMFoiIGZpbGw9IiMyOTUyN2IiLz48L3N2Zz4=",
"assets/shapes.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkdlb21ldHJpYyBzdHVkeTwvdGl0bGU+PHJlY3Qgd2lkdGg9IjY0MCIgaGVpZ2h0PSI0MDAiIGZpbGw9IiNmMmVlZTUiLz48Y2lyY2xlIGN4PSIyMjAiIGN5PSIxOTAiIHI9IjEwMCIgZmlsbD0iI2Q3OTQ1NCIvPjxyZWN0IHg9IjMyMCIgeT0iMTEwIiB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjMwIiBmaWxsPSIjMzE1ZDdmIi8+PHBhdGggZD0ibTEwMCAzMzAgMTIwLTE2MCAxMjAgMTYwWiIgZmlsbD0iI2UxYzc3OSIvPjwvc3ZnPg=="
}
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 13. Reset its primary example.",
"narration": "What evidence would show that layout works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "A grid container creates a two-dimensional layout of tracks. Direct children become grid items, and grid-template-columns defines explicit columns. Grid differs from Flexbox by coordinating rows and columns together rather than primarily one axis. The source order still matters for reading and keyboard navigation even when visual placement changes."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
The articles enter an explicit two-column grid; remaining items continue onto another row.
Reset the selected example after confirmation; it restores source and fixture inputs.
Data types
5 minutes; prepared recording script, not a rendered video
{
"lesson": 17,
"example": 0,
"input": [
null,
1,
"a"
],
"source": "async function main(input) {\nreturn input.map(value=>value===null?\"null\":Array.isArray(value)?\"array\":typeof value);\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 17. Reset its primary example.",
"narration": "What evidence would show that data types works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "JavaScript values carry runtime types. JSON supports only a subset of them, and null is distinct from a missing property. This classifier deliberately handles null before using typeof so a response validator can make the correct decision."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[ "null", "number", "string" ]
Reset the selected example after confirmation; it restores source and fixture inputs.
DOM selection
5 minutes; prepared recording script, not a rendered video
{
"lesson": 21,
"example": 0,
"files": {
"index.html": "<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>",
"styles.css": "body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }",
"script.js": "document.querySelector(\"#select\").addEventListener(\"click\", () => {\n const first = document.querySelector(\".record\");\n const all = document.querySelectorAll(\".record\");\n document.querySelector(\"#result\").textContent = first.textContent + \" / \" + all.length;\n});",
"assets/landscape.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkxheWVyZWQgbGFuZHNjYXBlPC90aXRsZT48cmVjdCB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCIgZmlsbD0iI2UyZWRmOCIvPjxjaXJjbGUgY3g9IjQ5MCIgY3k9Ijk1IiByPSI0NSIgZmlsbD0iI2ZmZjRjNCIvPjxwYXRoIGQ9Ik0wIDI4NSAxNzAgMTIwIDM1MCAyOTUgNTAwIDE4NSA2NDAgMjg1VjQwMEgwWiIgZmlsbD0iIzgxYTljZSIvPjxwYXRoIGQ9Ik0wIDMzNSAyMjAgMjMwIDQyMCAzNTAgNjQwIDI0MFY0MDBIMFoiIGZpbGw9IiMyOTUyN2IiLz48L3N2Zz4=",
"assets/shapes.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkdlb21ldHJpYyBzdHVkeTwvdGl0bGU+PHJlY3Qgd2lkdGg9IjY0MCIgaGVpZ2h0PSI0MDAiIGZpbGw9IiNmMmVlZTUiLz48Y2lyY2xlIGN4PSIyMjAiIGN5PSIxOTAiIHI9IjEwMCIgZmlsbD0iI2Q3OTQ1NCIvPjxyZWN0IHg9IjMyMCIgeT0iMTEwIiB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjMwIiBmaWxsPSIjMzE1ZDdmIi8+PHBhdGggZD0ibTEwMCAzMzAgMTIwLTE2MCAxMjAgMTYwWiIgZmlsbD0iI2UxYzc3OSIvPjwvc3ZnPg=="
}
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 21. Reset its primary example.",
"narration": "What evidence would show that dom selection works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "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. Check counts before using the result, and avoid constructing selectors from untrusted strings without a safe escaping strategy. Here the class selector intentionally matches two records so learners can compare the collection with one selected element."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
The first .record is Alex and the static collection has two entries.
Reset the selected example after confirmation; it restores source and fixture inputs.
Interactive components
5 minutes; prepared recording script, not a rendered video
{
"lesson": 25,
"example": 0,
"files": {
"index.html": "<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>",
"styles.css": "body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }",
"script.js": "const tabs = [...document.querySelectorAll(\"[role=tab]\")];\nfunction select(index) { tabs.forEach((tab, i) => { const active = i === index; tab.setAttribute(\"aria-selected\", String(active)); tab.tabIndex = active ? 0 : -1; document.getElementById(tab.getAttribute(\"aria-controls\")).hidden = !active; }); tabs[index].focus(); }\ntabs.forEach((tab, i) => { tab.addEventListener(\"click\", () => select(i)); tab.addEventListener(\"keydown\", event => { if ([\"ArrowRight\", \"ArrowLeft\"].includes(event.key)) { event.preventDefault(); select((i + (event.key === \"ArrowRight\" ? 1 : tabs.length - 1)) % tabs.length); } }); });",
"assets/landscape.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkxheWVyZWQgbGFuZHNjYXBlPC90aXRsZT48cmVjdCB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCIgZmlsbD0iI2UyZWRmOCIvPjxjaXJjbGUgY3g9IjQ5MCIgY3k9Ijk1IiByPSI0NSIgZmlsbD0iI2ZmZjRjNCIvPjxwYXRoIGQ9Ik0wIDI4NSAxNzAgMTIwIDM1MCAyOTUgNTAwIDE4NSA2NDAgMjg1VjQwMEgwWiIgZmlsbD0iIzgxYTljZSIvPjxwYXRoIGQ9Ik0wIDMzNSAyMjAgMjMwIDQyMCAzNTAgNjQwIDI0MFY0MDBIMFoiIGZpbGw9IiMyOTUyN2IiLz48L3N2Zz4=",
"assets/shapes.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkdlb21ldHJpYyBzdHVkeTwvdGl0bGU+PHJlY3Qgd2lkdGg9IjY0MCIgaGVpZ2h0PSI0MDAiIGZpbGw9IiNmMmVlZTUiLz48Y2lyY2xlIGN4PSIyMjAiIGN5PSIxOTAiIHI9IjEwMCIgZmlsbD0iI2Q3OTQ1NCIvPjxyZWN0IHg9IjMyMCIgeT0iMTEwIiB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjMwIiBmaWxsPSIjMzE1ZDdmIi8+PHBhdGggZD0ibTEwMCAzMzAgMTIwLTE2MCAxMjAgMTYwWiIgZmlsbD0iI2UxYzc3OSIvPjwvc3ZnPg=="
}
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 25. Reset its primary example.",
"narration": "What evidence would show that interactive components works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Tabs connect a tab list to mutually exclusive panels. Selecting a tab updates aria-selected, the roving tabindex and panel visibility together. Arrow keys move within the tab list; the selected tab becomes the keyboard entry point. The accessible name of each panel comes from its tab. This two-tab example supports click and ArrowRight/ArrowLeft; full testing also includes focus visibility and screen-reader announcements."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
Selecting Practice reveals panel two and gives tab-two the selected entry point.
Reset the selected example after confirmation; it restores source and fixture inputs.
Local storage
5 minutes; prepared recording script, not a rendered video
{
"lesson": 29,
"example": 0,
"files": {
"index.html": "<button id=\"write\">Write sample</button><button id=\"read\">Read sample</button><button id=\"remove\">Remove sample</button><output id=\"result\">No operation</output>",
"styles.css": "body { font: 18px/1.55 system-ui; margin: 1.5rem; color: #17324d; background: #f5f8fc; } button,input,select,textarea { font: inherit; } button { padding: .5rem .8rem; cursor: pointer; } :focus-visible { outline: 3px solid #155ec4; outline-offset: 3px; } [hidden] { display: none !important; } output { display: block; margin-block: .7rem; } .card { padding: 1rem; border: 1px solid #8a9db2; border-radius: .7rem; }",
"script.js": "const key = \"discovery-ui-lesson-71\";\nfunction perform(action) { try { if (action === \"write\") localStorage.setItem(key, JSON.stringify({version: 1, value: \"Sample\"})); if (action === \"remove\") localStorage.removeItem(key); const raw = localStorage.getItem(key); document.querySelector(\"#result\").textContent = raw ? JSON.parse(raw).value : \"No saved sample\"; } catch (error) { document.querySelector(\"#result\").textContent = \"Storage unavailable\"; } }\n[\"write\", \"read\", \"remove\"].forEach(action => document.getElementById(action).addEventListener(\"click\", () => perform(action)));",
"assets/landscape.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkxheWVyZWQgbGFuZHNjYXBlPC90aXRsZT48cmVjdCB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCIgZmlsbD0iI2UyZWRmOCIvPjxjaXJjbGUgY3g9IjQ5MCIgY3k9Ijk1IiByPSI0NSIgZmlsbD0iI2ZmZjRjNCIvPjxwYXRoIGQ9Ik0wIDI4NSAxNzAgMTIwIDM1MCAyOTUgNTAwIDE4NSA2NDAgMjg1VjQwMEgwWiIgZmlsbD0iIzgxYTljZSIvPjxwYXRoIGQ9Ik0wIDMzNSAyMjAgMjMwIDQyMCAzNTAgNjQwIDI0MFY0MDBIMFoiIGZpbGw9IiMyOTUyN2IiLz48L3N2Zz4=",
"assets/shapes.svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDAwIiB3aWR0aD0iNjQwIiBoZWlnaHQ9IjQwMCI+PHRpdGxlPkdlb21ldHJpYyBzdHVkeTwvdGl0bGU+PHJlY3Qgd2lkdGg9IjY0MCIgaGVpZ2h0PSI0MDAiIGZpbGw9IiNmMmVlZTUiLz48Y2lyY2xlIGN4PSIyMjAiIGN5PSIxOTAiIHI9IjEwMCIgZmlsbD0iI2Q3OTQ1NCIvPjxyZWN0IHg9IjMyMCIgeT0iMTEwIiB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjMwIiBmaWxsPSIjMzE1ZDdmIi8+PHBhdGggZD0ibTEwMCAzMzAgMTIwLTE2MCAxMjAgMTYwWiIgZmlsbD0iI2UxYzc3OSIvPjwvc3ZnPg=="
}
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 29. Reset its primary example.",
"narration": "What evidence would show that local storage works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "localStorage stores strings within an origin and may be blocked, cleared or full. Scope keys to this application and remove only the owned key. Serialize a versioned record, validate its shape after parsing and present actual exceptions rather than claiming a save. Do not store credentials or confidential records in this educational demo. Persistence across reloads should be checked on the final HTTP(S) host."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "Inspect active source, actual DOM, labels, the first error and declared browser capability limits before changing unrelated code."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
Write and Read report Sample; Remove affects only the namespaced key.
Reset the selected example after confirmation; it restores source and fixture inputs.
Fetch
5 minutes; prepared recording script, not a rendered video
{
"lesson": 33,
"example": 0,
"input": {
"ok": true,
"status": 200,
"body": "[1,2]"
},
"source": "async function main(input) {\nif(!input.ok)return {error:\"HTTP \"+input.status};\ntry{return {value:JSON.parse(input.body)};}catch{return {error:\"Malformed JSON\"};}\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 33. Reset its primary example.",
"narration": "What evidence would show that fetch works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "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. This pure response-contract exercise parses supplied recorded data; it does not claim a new network call."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "Serialization was used where parsing was required."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
{
"value": [
1,
2
]
}Reset the selected example after confirmation; it restores source and fixture inputs.
Modules
5 minutes; prepared recording script, not a rendered video
{
"lesson": 37,
"example": 0,
"input": {
"imports": [
"./a.mjs",
"./b.mjs"
],
"files": {
"./a.mjs": "export const a=1;"
}
},
"source": "async function main(input) {\nreturn input.imports.map(name=>({name,found:Object.hasOwn(input.files,name)}));\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 37. Reset its primary example.",
"narration": "What evidence would show that modules works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Modules define explicit imports and exports. A dependency must resolve to the file or package expected by the runtime. This small resolver validates a declared module map; it is not a general Node module loader."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The result was discarded by an early return."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[
{
"name": "./a.mjs",
"found": true
},
{
"name": "./b.mjs",
"found": false
}
]Reset the selected example after confirmation; it restores source and fixture inputs.
Creating servers
5 minutes; prepared recording script, not a rendered video
{
"lesson": 41,
"example": 0,
"input": {
"port": 4000
},
"source": "async function main(input) {\nreturn {host:input.host??\"127.0.0.1\",port:input.port??3000,mode:\"configuration model; no socket\"};\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 41. Reset its primary example.",
"narration": "What evidence would show that creating servers works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "An HTTP server listens on a host and port and invokes handlers for requests. Binding a port is a Node operation, not something the static browser simulator does. The workbench records a simulated listen and the project exports provide real createServer and listen calls."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The result was discarded by an early return."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
{
"host": "127.0.0.1",
"port": 4000,
"mode": "configuration model; no socket"
}Reset the selected example after confirmation; it restores source and fixture inputs.
Middleware
5 minutes; prepared recording script, not a rendered video
{
"lesson": 45,
"example": 0,
"input": [
{
"name": "log",
"allow": true
},
{
"name": "auth",
"allow": false
},
{
"name": "write",
"allow": true
}
],
"source": "async function main(input) {\nconst visited=[];\nfor(const step of input){visited.push(step.name);if(!step.allow)break;}\nreturn visited;\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 45. Reset its primary example.",
"narration": "What evidence would show that middleware works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Middleware forms an ordered chain. A handler must explicitly continue, respond or fail; calling next twice can create duplicate work. This deterministic trace models ordered checks and stops at the first denied step."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The result was discarded by an early return."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[ "log", "auth" ]
Reset the selected example after confirmation; it restores source and fixture inputs.
PUT, PATCH, and DELETE
5 minutes; prepared recording script, not a rendered video
{
"lesson": 49,
"example": 0,
"input": {
"record": {
"id": 1,
"title": "Old"
},
"patch": {
"id": 9,
"title": "New"
}
},
"source": "async function main(input) {\nreturn {...input.record,...(typeof input.patch.title===\"string\"?{title:input.patch.title}:{}),id:input.record.id};\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 49. Reset its primary example.",
"narration": "What evidence would show that put, patch, and delete works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "PUT replaces the declared representation, while PATCH modifies selected fields. Neither should allow a client to change immutable ownership or identity. This actual transformation applies only an allowlisted title change."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
{
"id": 1,
"title": "New"
}Reset the selected example after confirmation; it restores source and fixture inputs.
Database concepts
5 minutes; prepared recording script, not a rendered video
{
"lesson": 53,
"example": 0,
"input": {
"tasks": [
{
"id": 1,
"userId": 7
}
],
"users": [
{
"id": 7,
"name": "Alex"
}
]
},
"source": "async function main(input) {\nreturn input.tasks.map(task=>({...task,owner:input.users.find(u=>u.id===task.userId)?.name??\"unknown\"}));\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 53. Reset its primary example.",
"narration": "What evidence would show that database concepts works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Relations connect records by identifiers. A missing parent is a data-quality problem rather than a value to silently invent. This join exposes missing relationships and does not claim to execute a SQL database."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[
{
"id": 1,
"userId": 7,
"owner": "Alex"
}
]Reset the selected example after confirmation; it restores source and fixture inputs.
Server validation
5 minutes; prepared recording script, not a rendered video
{
"lesson": 57,
"example": 0,
"input": {
"title": "Task"
},
"source": "async function main(input) {\nreturn typeof input.title===\"string\"&&input.title.trim().length>=1&&input.title.length<=80?{valid:true}:{valid:false};\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 57. Reset its primary example.",
"narration": "What evidence would show that server validation works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Server validation is authoritative because clients can bypass forms. Pick known fields, reject incorrect types and constrain sizes before a write. Return a useful field error instead of silently coercing arbitrary input."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
{
"valid": true
}Reset the selected example after confirmation; it restores source and fixture inputs.
Authentication versus authorization
5 minutes; prepared recording script, not a rendered video
{
"lesson": 61,
"example": 0,
"input": {
"userId": 7,
"ownerId": 7
},
"source": "async function main(input) {\nreturn input.userId!==null&&input.userId===input.ownerId;\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 61. Reset its primary example.",
"narration": "What evidence would show that authentication versus authorization works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Authentication establishes who a requester is; authorization decides what that identity may do. A signed-in user is not automatically allowed to read another person\u2019s record. This policy function is illustrative; the real auth projects enforce ownership server-side."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
true
Reset the selected example after confirmation; it restores source and fixture inputs.
Protected routes
5 minutes; prepared recording script, not a rendered video
{
"lesson": 65,
"example": 0,
"input": {
"user": 1,
"owner": 1
},
"source": "async function main(input) {\nreturn input.user===null?401:input.user===input.owner?200:403;\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 65. Reset its primary example.",
"narration": "What evidence would show that protected routes works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Protected routes need both identity and resource-level authorization. Return unauthorized for absent identity and deny a mismatched owner without exposing the record. The shared Node framework applies this check to reads and writes, not only to visible buttons."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
200
Reset the selected example after confirmation; it restores source and fixture inputs.
CSRF
5 minutes; prepared recording script, not a rendered video
{
"lesson": 69,
"example": 0,
"input": {
"token": "a",
"expected": "a",
"origin": "same",
"allowed": "same"
},
"source": "async function main(input) {\nreturn Boolean(input.expected&&input.token===input.expected&&input.origin===input.allowed);\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 69. Reset its primary example.",
"narration": "What evidence would show that csrf works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "CSRF defenses must be evaluated where authenticated state changes occur. SameSite cookies, origin checks and unpredictable per-session tokens address different parts of the threat. This policy comparison is conceptual and does not generate a cryptographically secure token."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The equality condition selects the opposite branch."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
true
Reset the selected example after confirmation; it restores source and fixture inputs.
DOM testing
5 minutes; prepared recording script, not a rendered video
{
"lesson": 73,
"example": 0,
"input": [
{
"pass": true
},
{
"pass": true
}
],
"source": "async function main(input) {\nreturn {pass:input.length>0&&input.every(x=>x.pass),checks:input.length};\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 73. Reset its primary example.",
"narration": "What evidence would show that dom testing works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "DOM tests should activate real handlers and inspect actual nodes or focus. A DOM model cannot reproduce native layout, paint or complete accessibility. This assertion summary aggregates observed DOM checks; the interface examples run actual controlled previews."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The length property is misspelled, changing boundary calculations."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
{
"pass": true,
"checks": 2
}Reset the selected example after confirmation; it restores source and fixture inputs.
Node debugging
5 minutes; prepared recording script, not a rendered video
{
"lesson": 77,
"example": 0,
"input": "Error\n at app.mjs:12\n at library.mjs:5",
"source": "async function main(input) {\nreturn input.split(\"\\n\").find(line=>line.includes(\"app.mjs\"))??\"No application frame\";\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 77. Reset its primary example.",
"narration": "What evidence would show that node debugging works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Node debugging uses the real process, logs and debugger in the exported environment. The browser lab cannot expose a genuine Node call stack. This redacted stack parser operates on supplied text and helps isolate the first application frame."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The result was discarded by an early return."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
at app.mjs:12
Reset the selected example after confirmation; it restores source and fixture inputs.
Frontend performance
5 minutes; prepared recording script, not a rendered video
{
"lesson": 81,
"example": 0,
"input": {
"rows": 100
},
"source": "async function main(input) {\nreturn {individualWrites:input.rows,batchWrites:input.rows?1:0};\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 81. Reset its primary example.",
"narration": "What evidence would show that frontend performance works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Frontend performance work must preserve visible behavior and be measured on a representative workload. Batch DOM changes where it makes sense, then inspect actual browser observations. This model counts potential service work only; it is not an elapsed-time measurement."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The result was discarded by an early return."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
{
"individualWrites": 100,
"batchWrites": 1
}Reset the selected example after confirmation; it restores source and fixture inputs.
Performance measurement
5 minutes; prepared recording script, not a rendered video
{
"lesson": 85,
"example": 0,
"input": [
3,
1,
2
],
"source": "async function main(input) {\nif(!input.length)return null;\nconst values=[...input].sort((a,b)=>a-b),i=Math.floor(values.length/2);\nreturn values.length%2?values[i]:(values[i-1]+values[i])/2;\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 85. Reset its primary example.",
"narration": "What evidence would show that performance measurement works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Performance.now observations are local intervals, not production guarantees. Repeated samples and a median reduce some noise but do not remove all experimental bias. This calculator reports the median of supplied samples without inventing measurements."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The length property is misspelled, changing boundary calculations."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
2
Reset the selected example after confirmation; it restores source and fixture inputs.
Reviewing AI-generated applications
5 minutes; prepared recording script, not a rendered video
{
"lesson": 89,
"example": 0,
"input": [
{
"title": "Missing auth",
"reproduce": true,
"verify": true
},
{
"title": "Maybe slow",
"reproduce": false,
"verify": false
}
],
"source": "async function main(input) {\nreturn input.filter(x=>x.reproduce&&x.verify).map(x=>x.title);\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 89. Reset its primary example.",
"narration": "What evidence would show that reviewing ai-generated applications works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "A code review needs concrete findings, reproduction and a verification plan. A model assertion without evidence is not a verified defect. This filter keeps only authored findings with a reproducer and independent check."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The filtering operation was replaced by mapping, so rejected records remain in the output."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[ "Missing auth" ]
Reset the selected example after confirmation; it restores source and fixture inputs.
Hosting frontend assets
5 minutes; prepared recording script, not a rendered video
{
"lesson": 93,
"example": 0,
"input": {
"references": [
"index.html",
"client.js"
],
"files": {
"index.html": "x"
}
},
"source": "async function main(input) {\nreturn input.references.filter(path=>!Object.hasOwn(input.files,path));\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 93. Reset its primary example.",
"narration": "What evidence would show that hosting frontend assets works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Static hosting serves files but does not run a Node process. A frontend can call an independently hosted backend only under an appropriate URL, CORS and authentication design. This asset check reports missing local references before upload."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The filtering operation was replaced by mapping, so rejected records remain in the output."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[ "client.js" ]
Reset the selected example after confirmation; it restores source and fixture inputs.
Architecture
5 minutes; prepared recording script, not a rendered video
{
"lesson": 97,
"example": 0,
"input": {
"nodes": [
"view",
"api"
],
"edges": [
{
"from": "view",
"to": "db"
}
]
},
"source": "async function main(input) {\nreturn input.edges.filter(edge=>!input.nodes.includes(edge.from)||!input.nodes.includes(edge.to));\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 97. Reset its primary example.",
"narration": "What evidence would show that architecture works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "Architecture makes data and trust boundaries explicit. Every connection should target a declared component, and a diagram alone does not prove secure behavior. This validation reports dangling edges in a supplied architecture graph."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The filtering operation was replaced by mapping, so rejected records remain in the output."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[
{
"from": "view",
"to": "db"
}
]Reset the selected example after confirmation; it restores source and fixture inputs.
Capstone deployment
5 minutes; prepared recording script, not a rendered video
{
"lesson": 100,
"example": 0,
"input": {
"source": true,
"tests": true,
"accessReview": false,
"backup": true,
"rollback": false
},
"source": "async function main(input) {\nreturn [\"source\",\"tests\",\"accessReview\",\"backup\",\"rollback\"].filter(key=>!input[key]);\n}"
}[
{
"time": "0:00\u20130:40",
"action": "Open Learn and select lesson 100. Reset its primary example.",
"narration": "What evidence would show that capstone deployment works across the relevant application boundary?"
},
{
"time": "0:40\u20131:40",
"action": "Read source and pause for a prediction.",
"narration": "A capstone deployment includes requirements, source, tests, an access policy and a recovery plan. Demonstrate a real exported Node application separately from the static educational simulation. This release checklist exposes missing evidence rather than declaring a production deployment successful."
},
{
"time": "1:40\u20132:40",
"action": "Run the example and inspect actual output or controlled DOM.",
"narration": "State the evidence kind. A browser adapter is not a real Node process or production HTTP request."
},
{
"time": "2:40\u20133:40",
"action": "Load the repair exercise, reproduce its failure and inspect the first mismatch.",
"narration": "The filtering operation was replaced by mapping, so rejected records remain in the output."
},
{
"time": "3:40\u20135:00",
"action": "Repair, run the independent check, explain and export source. Reset before the next recording.",
"narration": "Which actual value, node or trace entry supports your explanation? What did this check not establish?"
}
]Expected
[ "accessReview", "rollback" ]
Reset the selected example after confirmation; it restores source and fixture inputs.