What's wrong with my syntax?


#1


var text = "My name is Yitzy, because Yitzy is my name \ it's the name I was given when I was born because you know, Yitzy, so Yitzy";

var myName = "Yitzy";
 
var hits = [];

for ( var i = 0; i < text.length; i++;) {
}


#2

realized my mistake, thanks all!


#3

I just looked at your code and I love your text. that was funny af just sayin. wished I could help though.


#4

The code below should work!

var vacationSpots = [Kyoto, Saitama, Tokyo];

for (var i = vacationSpots.length -1; i >= 0; i--) {
console.log('I would love to visit ' + vacationSpots[i]);
}


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.