0

Why is my setTimeout not working?

On line 131: newRound is called immediately even though it’s in a setTimeout. Why? https://code.sololearn.com/WYGZ0QKXYgGa/?ref=app

16th Dec 2021, 5:32 PM
Margaret Guzman
Margaret Guzman - avatar
1 Odpowiedź
+ 1
Margaret SetTimeout is expecting a callBack function. Drop the parentheses after newRound at line 131.
16th Dec 2021, 7:00 PM
ODLNT
ODLNT - avatar