create a java script program to display numbers 1 to 25
Answers
Answered by
3
Solution.
The JavaScript co de for the question is given below -
for(var i=1;i<=25;i++)
document.write(i+" ");
Note: You have to write the co de inside script tag.
Logic.
- Run a loop from i = 1 to 25.
- Display the value of i.
See attachment for output.
Attachments:
Similar questions
English,
4 hours ago
Social Sciences,
4 hours ago
English,
4 hours ago
Math,
7 hours ago
Social Sciences,
7 months ago
Math,
7 months ago