JavaScript Quiz: Types & typeof

This JavaScript quiz covers the primitive types and objects, and what the typeof operator says about each. You will meet the famous quirks, like typeof null and typeof NaN, and learn the right way to check for an array.

आसान 10 सवाल ~5 मिनट पास होने के लिए 80% Node.js 22

मोड चुनें

आप गेस्ट के तौर पर खेल रहे हैं: XP और streak सेव रखने के लिए साइन इन करें।

सैंपल सवाल

सवाल 1 / 10

What does this print?

console.log(typeof 42);
जवाब दिखाएं

A. number JavaScript has one number type for both whole numbers and decimals, and typeof returns lowercase strings. There is no separate integer type (except bigint for very large values).

इस क्विज़ में क्या है

  • The primitive types and objects
  • What typeof returns for numbers, strings, functions and arrays
  • The typeof null quirk
  • undefined vs null
  • Checking for arrays with Array.isArray()

अक्सर पूछे जाने वाले सवाल

क्या अकाउंट ज़रूरी है?

नहीं। कोई भी खेल सकता है। XP, streak, badge और हिस्ट्री सेव रखने के लिए साइन इन करें।

क्या मैं इसे दोबारा दे सकता हूं?

हां। आपका बेस्ट स्कोर सेव रहता है, और हर बार सवाल और जवाब शफ़ल होते हैं।