What's wrong with my syntax?


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++;) {


realized my mistake, thanks all!


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


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]);


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