ควิซ JavaScript: Strings & Template Literals

This JavaScript strings quiz checks template literals and the everyday string methods. You will predict the output of slice, split, trim and at, and see that strings can't be changed in place.

ง่าย 10 ข้อ ~5 นาที ผ่านที่ 80% Node.js 22

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

What does this print?

const name = "Ann";
console.log(`Hi, ${name}!`);
ดูเฉลย

D. Hi, Ann! Inside backticks, ${...} is replaced by the value of the expression. With normal quotes the text ${name} would be printed as is.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • Template literals with backticks and ${...}
  • Cutting strings with slice() and split()
  • trim(), toUpperCase() and at()
  • Strings are immutable
  • Searching with includes()

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

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

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