Advertisements
Advertisements
प्रश्न
Write event driven JavaScript program for the following.
Display number sequence from 100 to 150 in following format.
(100, 101, 102, ............., 150)
थोडक्यात उत्तर
उत्तर
Coding:
<html>
<script type="text/javascript">
var i;
document.write("<br>Numbers from 100-150 are <br>");
for(i=100;i<=150;i++)
{
document.write("\t"+i);
}
</script>
</html>
shaalaa.com
DOM (Document Object Model)
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?