Question: 16. Write a Javascript function that shows the numbers [1-10] in an alert box, one after another, sleeping for 100, 200, ..., 900 msec. That
16. Write a Javascript function that shows the numbers [1-10] in an alert box, one after another, sleeping for 100, 200, ..., 900 msec. That is, when the program starts, it should show 1. Then it should sleep for 100 msec. and show 2, then sleep for 200 msec. and show 3 and so on, finally showing 10 before returning.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
