Sleep: Difference between revisions

Content added Content deleted
(Added solution for Action!)
m (→‎{{header|JavaScript}} (in a web browser): Only language name goes in header)
Line 1,410: Line 1,410:
}</lang>
}</lang>


=={{header|JavaScript}} (in a web browser)==
=={{header|JavaScript}}==
===(in a web browser)===


Generally, JavaScript in a web browser is event-loop based and (except for alert()) non-blocking. So, the closest thing possible to the task description is to do something once the specified time has passed.
Generally, JavaScript in a web browser is event-loop based and (except for alert()) non-blocking. So, the closest thing possible to the task description is to do something once the specified time has passed.