I have a problem with executing a set timeout on a function in HTML I will show you 2 examples one that works the other simply ignore the set timeout method
Working examp