Bug at Learn Javascript (Loop)


#1


https://www.codecademy.com/courses/learn-javascript/lessons/loops/exercises/for-loop?action=lesson_resume


Error message showing: "Did you log all the places you'd like to visit to the console?"


var vacationSpots = ['Paris', 'New York', 'Barcelona'];

for(var i=0;i<vacationSpots.length;i++)
{
    console.log(vacationSpots[i]);
}


#2

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