Test Your Knowledge: 100-question JavaScript multiple-choice quiz
1. What does typeof 42 return? A. “int”B. “number”C. “integer”D. “numeric” Correct answer: BExplanation: In JavaScript, all numeric values (integers and floats) share the type “number”. 2. What is the result of typeof null? A. “null”B. “undefined”C. “object”D. “value” Correct answer: CExplanation: This is a long-standing JavaScript quirk: typeof null returns “object” even though null … Read more