12/13 halp!


#1

I REALLY need some help if you can, THAT WILL BE BOSS!! :sunglasses:


12. Loops and Arrays II

Oops, try again.
Your code should have printed 'I know someone called Mom', but
didn't. Make sure to type the 'I know someone called ' part exactly
right, and don't forget the space between that phrase and the name!

var names = ["Mom", "Dad", "Chapin", "Travis", "Mac"];

for (var i = 0; i < names.length; i ++) {
console.log("I know someone called" + "Mom");
}

#2

don't put mom on it, instead put names[i])


#3

thanks man You REALLY HELPED YOU BOSS!!!!!!!!!! :sunglasses:


#4

wait it isn't working here is my new code

var names = ["Mom", "Dad", "Chapin", "Travis", "Mac"];

for (var i = 0; i < names.length; i ++) {
console.log("I know someone called" + names[i]);
}

#5

it's just the space is needed after called


#6

oh. sorry man i didn't realize #BOSS :sunglasses: thanks!