3rd Nov 2017, 2:28 AM
Roland Doctor
Roland Doctor - avatar
2 Antworten
+ 7
https://code.sololearn.com/W2VEOoU0Lg51/?ref=app here i removed the () in ok function in the update
3rd Nov 2017, 2:36 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 6
As @Abdur stated you're calling the ok function in your setinterval function instead of passing the function to the function. So change line 21 from: var x = setInterval(ok(), 1000); to: var x = setInterval(ok, 1000);
3rd Nov 2017, 3:06 AM
ChaoticDawg
ChaoticDawg - avatar