4/7 not working?


#1

/*jshint multistr:true */

var text = ("NAH NAH NAH NAH NAH NAH NAH Ethan NAH NAH NAH Ethan/ NAH NAH NAH NAH Ethan/ NAH NAH")
var myName = ("Ethan")
var hits = []
console.log (text.length)
for(var i=0; i < 83; i++) {
if (myName[i] === "E"){
}else{
};
}
Oops, try again. Remember how to check the value of an element in an array? You simply do arrayName[i]. Check the Hint if you need help!
huh?


#2

Never mind, I solved it :smile: