0

setInterval() bug

Okay so ive been making this code for like a week, i finally figured all the logic out and thats when my setInterval stops doing its job. Mind you that the code worked at 50% progress, i finished it and now it doesnt work I tried to use console.log() and made a dummy variable to see which function didnt work and turns out ALL of them not working https://code.sololearn.com/WZNKjRmQ2633/?ref=app Any help would be appreciated

23rd Sep 2022, 9:03 AM
Hizand
Hizand - avatar
4 Antworten
0
Have you tried wrapping all your js inside of window.onload = function() { // here your js... } Does that change the error?
23rd Sep 2022, 9:51 AM
Lisa
Lisa - avatar
23rd Sep 2022, 10:29 AM
A͢J
A͢J - avatar
0
lisa, I made sure to wrap the js Aj, thank you i will check them out
26th Sep 2022, 9:39 AM
Hizand
Hizand - avatar
0
Sorry long reply i took a break from sololearn cuz i was depressed with my code
26th Sep 2022, 9:43 AM
Hizand
Hizand - avatar