मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (सामान्य) इयत्ता १२ वी

Write event driven JavaScript program for the following. Display number sequence from 100 to 150 in following format. (100, 101, 102, ............., 150) - Information Technology

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)
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 3: Advanced Javascript - Exercises [पृष्ठ ५२]

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×