JavaScript Variables and Types for Pythonistas Quiz
Interactive Quiz ⋅ 9 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Variables and Types for Pythonistas.
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. 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!