JavaScript Quiz: 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, badge और हिस्ट्री सेव रखने के लिए साइन इन करें।

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

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