Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <p id="msg"></p> <script> // Set variables var myBankBalance = 0; var output = ""; // Do the 'for' loop for (myBankBalance = 0; myBankBalance <= 3; myBankBalance++) { if (myBankBalance === 1) { continue; } output += "My bank balance is now $" + myBankBalance + "<br>"; } // Output results to the above HTML element document.getElementById("msg").innerHTML = output; </script>
Preview