Why is the function executed immediately when I use setTimeout?
Asked 2011-08-21T09:17:14.693
99
I'm trying to write simple code with a setTimeout, but the setTimeout just won't wait the time it's supposed to and the code executes immediately. What am I doing wrong?