QuestenaПрактика, после которой понятно, что повторить
Вопрос 33

Which statements about startsWith and endsWith are true? Select all that apply.

  1. Both return matched substrings
  2. Both ignore letter case
  3. startsWith tests the beginningПравильный ответ
  4. endsWith tests the endingПравильный ответ

Объяснение

Both methods perform case-sensitive boundary tests and return booleans. They do not return the matched text, and a suffix test does not search every interior position as though it were includes.

Продолжить работу с тестом

Начать тренировку
Вопрос 33: Which statements about startsWith and endsWith are true?… · JavaScript Fundamentals · Questena