The JavaScript code is here.
- < script type = "text/javascript" >
- <!--
- myLabelA: var x = 2 + 2;
- var y = 5 * 5;
- var z = 9 / 3;
- var j = 7 - 4;
- document.write("The value of 2+2 is: " + x + "<br>");
- document.write("The value of 7-4 is: " + j + "<br><br>");
- myLabelB: for (i = 0; i < 5; i++) {
- document.write("Ths value of i is: " + i + "<br>");
- if (i == 3) {
- break myLabelB;
- }
- }
- myLabelC: document.write("<br>");
- document.write("The value of 5 x 5 is: " + y + "<br>");
- document.write("The value of 9/3 is: " + z + "<br>");
- -->
- <
- /script>
Thank you, keep learning and sharing.