FANDOM


The for statement is a statement that repeats until a specified condition evaluates to false. It creates a loop that consists of three optional expressions, enclosed in parentheses and separated by commas followed by a statement to be executed.

Example

for (var i = 0; i < 5; i++){
console.log(i);
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.