QuestenaPractice that shows what to review next
Question 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 beginningCorrect answer
  4. endsWith tests the endingCorrect answer

Explanation

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.

Continue with this test

Start practice
Question 33: Which statements about startsWith and endsWith are true?… · JavaScript Fundamentals · Questena