100-Question JavaScript Interview Quiz
1) Basics, Types, Coercion (1–15) 1) What is the result of typeof null? A) “null” B) “object” C) “undefined” D) “number”Answer: B Explanation: A long-standing JS quirk: typeof null returns “object”. 2) What does NaN === NaN evaluate to? A) true B) falseAnswer: B Explanation: NaN is not equal to anything, even itself. Use Number.isNaN(x). … Read more