+ 1

I need help in Javascript

Can somebody help? Im trying to make Bob’s age go up every 60 seconds but im still new to Javascript Here’s my code https://code.sololearn.com/cAW7R6QI9zAx/?ref=app

4th Feb 2022, 2:42 PM
Royce
Royce - avatar
2 Réponses
+ 4
Royce Here is the solution but you cannot apply 60 second in Sololearn Code Playground because program will terminate immediately. So I have used 10 for now. You are already calling function in setInterval so no need to call again https://code.sololearn.com/cJ2EjfDYxnly/?ref=app
4th Feb 2022, 4:06 PM
A͢J
A͢J - avatar
+ 3
Use Web Code instead of Node.js code and you can achieve the results
6th Feb 2022, 4:09 AM
Gordon
Gordon - avatar