Tricky JavaScript Questions

This hard JavaScript quiz goes after the language's strangest corners. You will untangle coercion, parseInt with map, object keys, the temporal dead zone and automatic semicolon insertion, and explain why each result happens.

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

मोड चुनें

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

सैंपल सवाल

सवाल 1 / 10

What does this print?

console.log([] + {}, typeof ([] + {}));
जवाब दिखाएं

B. [object Object] string + with objects converts both sides to primitives: [] becomes "" and {} becomes "[object Object]". One of them is a string, so the result is string concatenation.

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

  • Coercion of arrays and objects to strings and booleans
  • map(parseInt) and other argument surprises
  • Objects used as property keys
  • The temporal dead zone of let
  • Automatic semicolon insertion after return

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

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

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

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

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