Compare and Convert Quiz

Interactive Quiz ⋅ 13 Questions
By Martin Breuss

In this quiz, you’ll review what you learned in Compare and Convert.

You’ll revisit comparisons at a limit, turning text into numbers, spotting NaN, decimals that come out a tiny bit off, the difference between null, undefined, 0 and empty text, rounding below zero, toFixed() text, and how a supplied function wrapper hands back its answer.

Most questions show a short script and ask what it prints when you run it with Node. Good luck!

The quiz contains 13 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A hiker with a trekking pole watches a machine turn weight tags into number blocks, weigh a backpack against a limit dial, and light a TOTAL TRUE screen with a receipt.

Course

Compare and Convert

Write JavaScript that answers yes-or-no questions with comparisons, turns numeric text into numbers you can calculate with, and keeps those numbers apart from formatted output. Then you'll build the core of an adventure-pack checker.

basics js