ควิซ JavaScript: 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, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง