javascript for loop new line when getting to the end of screen code example
Example: javascript for loop new line when getting to the end of screen
for (i = 0; i <= 10; i++) {
document.getElementById("my-paragraph").innerHTML = "Hello World\n";
}