Квиз по 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 и серию.

Пример вопроса

Вопрос 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, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.