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.
- Check if the
sentencecontains the exact sequence "JS" (this is case-sensitive). - Return the boolean result.
01EXAMPLE 1
Input
sentence = "I love JS"Output
trueConstraints
- Perform a case-sensitive check for 'JS'.
FundamentalsStringsSearch
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
sentence"JS is great"
Expected Output
true
Click RUN to test your solution