About Lesson
For loop provides a concise way of writing the loop structure. Unlike a while loop, a for statement consumes the initialization, condition and increment/decrement in one line thereby providing a shorter, easy to debug structure of looping.
For Loop Syntax in JavaScript:
for(var x = 1; x <= 10; x++){
document.write(“Hello Everyone <br>”);
}