Quantcast
Channel: JavascriptKata - Latest Comments
Viewing all articles
Browse latest Browse all 47

Re: How to execute javascript code directly in your browser

$
0
0

With a Loop! if you want something repeated 10 times

for( var i = 0 ; i < 10 ; i++ ){

      //Code To Execute here

}

var i is started at 0,
then the condition of the loop is. "A long as the value of i is less than 10",
i++ means the value of i is incremented by one each time the loop is executed


Viewing all articles
Browse latest Browse all 47

Trending Articles