27 loop the loop syntax error


#1

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

I keep getting a "syntax error: unexpected token <="

I dont understand why it's throwing this error.


#2

You have commas in between you should have semi colons ;


#3

Derp! Oh good lord. Thank you! It works now.


#4

You're welcome :green_heart:

Happy Learning :slightly_smiling:
Happy coding !

What inspired you to learn programming/coding?
Join the discussion