0
5.8kviews
Write JavaScript program to change background color continuously using button.
1 Answer
written 5.8 years ago by |
Math.floor(Math.random() * 10)
selects any random number from 0 to 9. According to randomly selected number and color value associated with that number is set as background color for 500 ms only.