FREE JAVASCRIPT PRACTICE
JavaScript type coercion quiz:
What does it print?
Three tiny snippets. Start with a plus sign and a string, then try subtraction and equality. Predict each output before peeking at the exact steps. Free, with no account needed.
Teaching type coercion? Embed or print this free challenge →
String coercion
What does this JavaScript print? Each output line is a separate console.log call. String outputs are shown without quotes.
console.log(1 + "2" + 3);A code-only card with the quiz link. No answers or personal results.
No signup. These three questions reuse the free starter set. Quiz answers stay in page memory only; reloading clears them and saved practice progress is unchanged. Fixed examples, not a code runner. Website-visit and performance measurement still apply. Privacy & data.
A quick code-reading check
Type coercion means converting a value from one type to another. This challenge asks you to trace three different situations rather than memorize an output. Choose an answer and check it to reveal the explanation for that snippet.
These are three of CodePeek’s 15 free starter puzzles, not extra pack questions. Continue with Boolean conversion, explore all free practice, or try the array methods quiz.
