I have no clue what to do for this step, please simplify what to do


#1

pls show what to do cause i have no clue


#2

6. Search Text for Your Name

var text = "Sens is Sens for Sense not Sins nor Since, make sense?";
var myName = "Sens";
var hits = []; // declare an array

for(var i = 0; i < text.length; i++){
    if(text[i] === myName[0]){ 
        for(var j = i; j < (i + myName.length); j++){
            hits.push(text[j]);
        }
    }
}

if(hits.length === 0){
    console.log("Your name wasn't found!");
}else{
    console.log(hits);
}

// [ 'S', 'e', 'n', 's', 'S', 'e', 'n', 's', 'S', 'e', 'n', 's', 'S', 'i', 'n', 's', 'S', 'i', 'n', 'c' ]

#3

@rbelekewicz take a look at this post to get an idea what to do
Click here to post