0
6.3kviews
Write JavaScript program to change background color continuously using button.
1 Answer
| written 7.3 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.