← Back to the type-coercion challenge

FOR JAVASCRIPT EDUCATORS

One operator.
A fresh “aha”.

Bring CodePeek’s free three-question type-coercion challenge into your lesson. Learners predict string concatenation, numeric conversion, and loose versus strict equality—then trace each output step by step.

PREDICT FIRST, EXPLAIN TOGETHER

Ask learners to read each snippet independently and predict before running it. Compare their reasoning, then reveal the explanation. These are the same three tested questions from the free starter set, not new or paid content.

Choose the version you need, then print or save as PDF. A4 or Letter, portrait. The learner sheet has writing space and no answers; the separate public teacher key is for explanation time. Both include the interactive challenge and 15 free practice puzzles. No signup needed.

Copy. Paste. Let them predict.

Paste this into a custom HTML or iframe block on your course page. Your platform must allow iframes from https://codepeek.brainer.one.

It fills its container’s width. The 780px height keeps setup script-free; longer answers scroll inside the frame. You can adjust the height to fit your lesson. No learner account is required. Predictions stay in page memory and are not sent as puzzle-usage events. The embedded page still uses Brainer website-visit analytics and Cloudflare performance measurement, independently of puzzle-count permission. Privacy & data ↗. Refreshing starts a fresh activity; main-app progress stays separate.

If your platform blocks embeds, print the learner handout or link to the free challenge instead ↗. Questions? codepeek@brainer.one

LIVE EXAMPLE

A quick pause in your type-coercion lesson

What changes when + becomes -? Does equality convert the operands? Choose an output before checking each explanation.

This is the same iframe your learners will use, not a screenshot. CodePeek’s practice links open in a new tab.

Keep the discoveries going

Try Boolean conversion, compare || with ??, or explore all 15 free puzzles. Teaching arrays next? Use the array lesson resource.