5/7 Loops

Can anyone tell me waht is wrong with this code?

            var myPlaces = ['Hawaii', 'Tenerife', 'Grecee'];
            var friendPlaces = ['Hawaii', 'Tenerife', 'Italy'];

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

	for (var j = 0; j < friendPlaces.lenght; j++) {

The first array is working,but the second one does not and i don’t find any mistakes.

@radurco, Notice the spelling. :slight_smile:

And the placement of your curly brackets { }

Remember to close the first for loop and delete the last }

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