0

Write a program-timer, that will take the count of seconds as input and output to the console all the seconds until timer stops.

From 0to 10 anyone help me

16th Nov 2022, 4:35 AM
Rohit kumar
Rohit kumar - avatar
5 odpowiedzi
+ 3
Use the prompt() function to get user input. Use setTimeout() to do something after a certain time - in this case, call a function which will print the remaining time, and if it's more than zero, call itself again. https://www.w3schools.com/jsref/met_win_settimeout.asp
16th Nov 2022, 4:49 AM
Tibor Santa
Tibor Santa - avatar
0
I can't understand
16th Nov 2022, 5:33 AM
Rohit kumar
Rohit kumar - avatar
0
Rohit kumar What you didnt understand?
16th Nov 2022, 6:35 AM
KrOW
KrOW - avatar
0
Thank uhh❤️
16th Nov 2022, 6:53 AM
Rohit kumar
Rohit kumar - avatar