QuestenaÜben und erkennen, was als Nächstes dran ist
Frage 32

What does "JavaScript".includes("script") return?

  1. the substring script
  2. an index number
  3. falseRichtige Antwort
  4. true

Erklärung

includes performs a case-sensitive substring search, so lowercase "script" does not match the capitalized segment in "JavaScript". Assuming automatic case folding would turn a nonmatch into an incorrect true result.

Mit diesem Test weitermachen

Übung starten
Frage 32: What does "JavaScript".includes("script") return? · JavaScript Fundamentals · Questena