JavaScript Equality and Type Checks for Pythonistas Quiz
Interactive Quiz ⋅ 10 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of JavaScript Equality and Type Checks for Pythonistas.
By working through this quiz, you’ll revisit why includes() and Object.is() treat
two objects with the same fields as different, what happens when you treat a string or a
new Boolean() like an object, how to pick between typeof, instanceof, and
Array.isArray(), how null and undefined behave in comparisons, and where -0
turns up.
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 script. Good luck!
The quiz contains 10 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 Equality and Type Checks for Pythonistas
Port a weather co-op's readings check from Python to JavaScript, and learn how JavaScript compares records, checks types and classes, and follows the rules of == and Object.is().