how to use newline when iterateing in javascript 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";
}
for (i = 0; i <= 10; i++) {
document.getElementById("my-paragraph").innerHTML = "Hello World\n";
}