Dont know how to do the for loop


#1

var yes = true

while(yes){
console.log("Yes");
yes = false}

var i = 1
for(i<10){
console.log(i ++)

im not sure wh6t to do for the for loop


#2

@rbelekewicz,

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
http://javascript.crockford.com/survey.html


#3

for (var i = 1; i< 10; i--)
{console.log("I finish my 8/11 exercise")};