Write the JavaScript code which will display the following in a-00663

Online Quiz This subjective question is related to the book/course vu cs403 Database Management Systems. It can also be found in vu cs403 Mid Term Solved Past Paper No. 6.

Question 1: Write the JavaScript code which will display the following in a web page using a FOR loop:
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
Answer:
<html>
<script type="text/javascript">
var no;
for (no=0; no<6 ; no++)
{ document.write("The number is "
+
no +
"<br>" );
}
</script>
</html>

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background