Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 32

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

  1. the substring script
  2. an index number
  3. falseالإجابة الصحيحة
  4. true

الشرح

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.

تابع هذا الاختبار

بدء التدريب
السؤال 32: What does "JavaScript".includes("script") return? · JavaScript Fundamentals · Questena