[Javascript] Timed demo doesn't work as expected, why?

David Dorward david at dorward.me.uk
Sun Mar 30 12:14:58 CDT 2008


On 30 Mar 2008, at 18:07, tedd wrote:
>
> However, what it does is wait for three seconds and then hides  
> everything.
> Why does it do that?

setTimeout is non-blocking. You have three counters counting down  
simultaneously, not one after the other.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/





More information about the Javascript mailing list