htmlcss

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);
}