JavaScript Variables and Types for Pythonistas (Fast Track) Quiz
Interactive Quiz ⋅ 9 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Variables and Types for Pythonistas (compact).
By working through this quiz, you’ll revisit declaring each name once with const
or let, where a name declared inside braces lives, what typeof can and can’t tell
you, how null differs from undefined, how to check an array for emptiness, and
how +, ==, and === treat text, numbers, and arrays.
Most questions show a short snippet ported from Python and ask what it does in JavaScript, or which version gives the same answer as the Python check. Each one puts a Python habit in your way, so you can check that you’d now catch it. Good luck!
The quiz contains 9 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
Course
JavaScript Variables and Types for Pythonistas (Fast Track)
The shorter version for experienced Pythonistas: port a Python backup check to JavaScript, and learn const, let, typeof, null and undefined, empty values, and ===.