Loading…
Loading…
Twenty questions on the iteration protocol, Symbol.iterator, custom iterables, one-shot iterators, return() cleanup, generator functions, yield and yield*, return values, next(value), return(), throw(), try/finally in generators, and ES2025 iterator helpers.
Review quiz for Part 12 (Iterators and Generators) of the JavaScript course, articles 90 to 93: from JavaScript Iterators and Iterables: Symbol.iterator, the Iteration Protocol and Custom Iterables to JavaScript Iterator Helpers: map, filter, take, drop, flatMap and reduce on Any Iterator (ES2025).
Every answer was confirmed by running the code on Node.js. Aim for at least 15 out of 20 before starting Part 13.
Quiz path: step 11 of 20. Take the quizzes in this order, after reading the articles they cover.
Previous quiz: The Standard Library Review (JavaScript Part 11)
Next quiz: Asynchronous JavaScript Review (JavaScript Part 13)
20 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.