Build a String Inspector - Step 5

Tell us what’s happening:

this is what i found …

Your code so far

const fccSentence = "freeCodeCamp is a great place to learn web development.";

console.log("Here are some examples of the includes() method:");

const hasFreeCodeCamp = fccSentence.includes("freeCodeCamp");
// a template literal concatenation 
console.log(`fccSentence.includes("freeCodeCamp") returns ${hasFreeCodeCamp} because the word "freeCodeCamp" is in the sentence.`);
// string concatenation
// User Editable Region
let hasJavaScript = fccSentence.includes("JavaScript");
console.log("fccSentence.includes(\"JavaScript\") returns " + hasJavaScript + " because the word \"JavaScript\" is not in the sentence.")
// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

Challenge Information:

Build a String Inspector - Step 5

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-string-inspector/68e6172975008fea742a63cb.md at main · freeCodeCamp/freeCodeCamp · GitHub

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!