What's wrong with my code..? 11/11


#1

// Write your code below!
for(var i = 0; i < 11: i++){
console.log(i);
}

var myCondition = true;

while(myCondition){
console.log("I know who you are.");
myCondition = false;
}

var condition = false;

do{
console.log("However, don't know who you are.");
condition = false;
} while(condition);

I couldn't fine what's problem....


#2

in this line:

for(var i = 0; i < 11: i++){

after 11, you have a colon, this should be a semi-colon


#3

@magastory,
the for-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for

the while-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while

the do-while-loop:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/do...while

Reference

google search
== the Book ==
javascript [your question] site:developer.mozilla.org

== discussions / opinions ==
javascript [your question] site:stackoverflow.com

== guidance ==
www.crockford.com
http://javascript.crockford.com/code.html <---JavaScript code-convention
http://javascript.crockford.com/survey.html
https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript
www.developer.mozilla.org/en-US/docs/Web/JavaScript/Guide