Javascript – Why would my setTimeout() return a random number on screen when the callback function executed
I am trying to learn Svelte by building a quiz app. What I wanted to achieve is that when the user has answered a question from the quiz, it automatically jumps to the next one. I set a setTimeout() of…