FOR LEARNERS
Read. Predict. Take a peek.
Choose a topic and format. Quizzes and visualizers keep selections in page memory; reload to start fresh.
3 step-through predictions
Promise vs setTimeout visualizer
Async · microtasks · timers
Predict the log order, then step through synchronous execution, queued Promise callbacks and timer tasks. See what runs now and what is only scheduled.
Trace the event loop →3 output predictions
Array methods quiz
Arrays · mutation · references
Read three snippets about slice versus splice, map and mutation, and shared array references. Choose an output, then check the step-by-step explanation.
Try the array quiz →3 output predictions
Type-coercion quiz
Strings · numbers · equality
Trace string concatenation, numeric coercion, and loose versus strict equality. Predict each output before revealing the exact steps.
Try the type-coercion quiz →7 interactive examples
Slice vs splice visualizer
Arrays · return values · mutation
Predict the return value and the original array, then reveal indexed before-and-after views. Compare the two methods with fixed, tested examples.
Open the visualizer →15 FREE STARTER PUZZLES
One snippet. Your prediction.
Choose a JavaScript concept below and go straight to the code. Check your prediction to reveal the explanation. Guest progress stays in this browser; an optional private account saves practice across devices.
5 free puzzles
Values
4 free puzzles
Arrays
3 free puzzles
Scope
3 free puzzles
Async
FOR EDUCATORS
Bring a little aha to class.
Share the interactive quiz, print a learner sheet, or copy an iframe into your lesson. Learner handouts have no answers; teacher keys are separate public pages.
3 questions · embed or print
Teach Promise vs setTimeout
Synchronous code · microtasks · timer tasks
Use the tool’s three existing async snippets. Predict independently, compare queue reasoning, then step through together. Print separate learner and teacher sheets or embed the guest tool.
Open lesson resource →3 questions · embed or print
Teach array methods
Slice vs splice · map · shared references
Use the same three array-quiz snippets for an independent prediction, a discussion, or a pause inside your course page.
Open lesson resource →3 questions · embed or print
Teach type coercion
Concatenation · numeric conversion · equality
Use the same three type-coercion questions from the free starter set. Ask learners to predict first, compare reasoning, then explain together.
Open lesson resource →Print or save as PDF on A4 or Letter, portrait. Embeds need a platform that allows iframes from codepeek.brainer.one. No learner accounts required. Privacy & data.