I know this may be an old question. But I'm really confused after a few googling.
From this question, I learn the setTimeout will execute forever,
but from this one, I learn it will execute only once.
What's strange is that when I test it in browser console, I happen to see it keeps executing..
But sometimes it only execute once:
The same code gives different result. Anyone know why?
EDITED: I now can believe setTimeout executes only once, but how to explain the first screenshot of my test?