Read the snippet
Trace the values and follow the order. What changes? What stays the same?

A little JavaScript curiosity
Read the code. Predict the output. Peek at the why. Quick puzzles for JavaScript learners who want to understand what happens next.
TRY IT HERE
Pick an example, choose the output, then peek at the explanation. Nothing runs and nothing is saved.
What does this code print?
console.log(1 + "2" + 3);Just an example. No signup, saved answers, or code execution here.
FREE TOOLS
Back for more? Saved practice · Choose a topic or find a classroom resource →
THREE SMALL MOVES
No editor to configure. No blank page to fill. Just a few lines of JavaScript and a reason to look a little closer.
Trace the values and follow the order. What changes? What stays the same?
Choose the output before you see the answer. A surprise is a useful place to start.
Get a step-by-step explanation, not just a green tick. Take the idea to your next snippet.
YOUR NEXT PEEK
Free
15 JavaScript puzzles to read, predict and understand.
$9 USD · once
45 additional puzzles for a deeper look at familiar JavaScript surprises.
GOOD TO KNOW
Beginner-to-intermediate JavaScript learners and hobby coders. If you know basic syntax and want to get better at following what code does, take a peek.
Three puzzles. Step-by-step explanations. No signup needed.