Courses
JavaScript Advanced: Code That Holds Up in Production
Final Check: JavaScript Advanced
Fifteen questions across the whole course, from closures to memory leaks. If you score below 12, go back to the sections where you missed and redo their Check Yourself quizzes.
Course content
Join this Course
Sign in to save your progress.
-
Functions That Remember
-
JavaScript Closures in Real Code
-
this, bind and Arrow Functions: Who Is Calling
-
-
-
How JavaScript Actually Runs
-
The Event Loop: Microtasks, Macrotasks and Why setTimeout(0) Isn't Zero
-
Running Promises in Parallel: all, allSettled, race
-
Cancelling Work With AbortController
-
-
-
Data That Doesn't Fit in Memory
-
Iterators and Generators
-
Streams in Node.js: Reading Big Files a Piece at a Time
-
-
-
Catch Bugs Before You Run the Code
-
JSDoc Types and // @ts-check Without Switching to TypeScript
-
ESLint in a Real Project
-
-
-
Ship It, Then Make It Fast
-
Bundling With Vite and Publishing to npm
-
Finding Slow Code With the Performance Profiler
-
Memory Leaks: Event Listeners and Closures That Never Let Go
-
-
- Final Check: JavaScript Advanced
1.
function makeGreeter(greeting) { return name => `${greeting}, ${name}!`; } Why can the returned function still use greeting after makeGreeter has returned?
2.
An object literal has label: () => this.name. Why does shop.label() return undefined?
3.
async function save() { console.log(1); await null; console.log(3); } save(); console.log(2); What prints?
4.
Why can a promise chain that keeps queueing microtasks freeze a page?
5.
You need a result from any one of three mirror servers, whichever answers successfully first. Which do you use?
6.
fetch(url, { signal: AbortSignal.timeout(5000) }) rejects after 5 seconds. What is error.name?
7.
The user clicks Cancel on an import that already saved 300 of 1,000 rows. After abort(), what happened to the 300 rows?
8.
A function needs to process 400,000 API records, page by page, and might stop early. What fits best?
9.
What is backpressure in Node streams?
10.
In a JSDoc-typed file, which line describes an optional number parameter that defaults to 20?
11.
Why prefer // @ts-expect-error over // @ts-ignore?
12.
After running eslint --suppress-all, a teammate adds a new file with an undefined variable. What happens in CI?
13.
Which package.json field limits what other projects can import from your package?
14.
A report takes 300 ms. The profiler shows the time is in a function that filters the whole order list once per order. What's the fix?
15.
A class adds a resize listener with a closure that refers to this. close() doesn't remove it. Why is this a leak?
About
Fifteen questions across the whole course, from closures to memory leaks. If you score below 12, go back to the sections where you missed and redo their Check Yourself quizzes.
- Duration
- 15 min
- Last update
- 08/23/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.