The Language Scanner

Easy+15 XP

Mission Briefing

The Language Scanner must filter incoming applications and flag the resumes of potential Web Developers. We only care if they mention "JS" somewhere!

The Concept: String Searching

The .includes(substring) method tells you if one string can be found anywhere within another, returning true or false. It's exactly like checking if an item is in an array, but for text! Example: "Hello World".includes("World"); // Returns true

The Objective

Your function receives a string sentence.

  1. Check if the sentence contains the exact sequence "JS" (this is case-sensitive).
  2. Return the boolean result.

01EXAMPLE 1

Inputsentence = "I love JS"
Outputtrue

Constraints

  • Perform a case-sensitive check for 'JS'.
FundamentalsStringsSearch
JavaScript
Loading...
3 Hidden

Input Arguments

sentence"JS is great"

Expected Output

true

Click RUN to test your solution