+ 2

How can I make the code display work 1, work 2 .... And Hi 1, Hi 2 Instead of only work and Hi respectively?

https://code.sololearn.com/WQOYjS8799Zi/?ref=app

14th Jul 2018, 12:59 PM
B.D
B.D - avatar
2 Respuestas
+ 6
Bithi D , you need 2 variables for each and increment it every setInterval call. Here's a working code https://code.sololearn.com/WhU2Y9LRSNgA/?ref=app
14th Jul 2018, 1:07 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 1
thank you
14th Jul 2018, 1:11 PM
B.D
B.D - avatar