Practice
Practice
Practice
i. console.log()
ii. alert()
iii. document.write()
d) Write a program to print sum of even numbers between 1 to 100 using for loop.
f) Write a JavaScript for loop that will iterate from 1 to 15. For each iteration, it
will check if the current number is odd or even and display a message to the screen.
Sample Output :
“1 is odd”
“2 is even”
…………
………....