crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Loops</h2> <p>A loop with a <b>break</b> statement.</p> <p id="test"></p> <script> var text = ""; var i; for (i = 0; i < 10; i++) { if (i === 3) { break; } text += "The number is " + i + "<br>"; } document.getElementById("test").innerHTML = text; </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBMb29wczwvaDI+DQoNCjxwPkEgbG9vcCB3aXRoIGEgPGI+YnJlYWs8L2I+IHN0YXRlbWVudC48L3A+DQoNCjxwIGlkPSJ0ZXN0Ij48L3A+DQoNCjxzY3JpcHQ+DQp2YXIgdGV4dCA9ICIiOw0KdmFyIGk7DQpmb3IgKGkgPSAwOyBpIDwgMTA7IGkrKykgew0KICBpZiAoaSA9PT0gMykgeyBicmVhazsgfQ0KICB0ZXh0ICs9ICJUaGUgbnVtYmVyIGlzICIgKyBpICsgIjxicj4iOw0KfQ0KZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInRlc3QiKS5pbm5lckhUTUwgPSB0ZXh0Ow0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=