Timing
Pausing and controlling execution flow
wait(ms)
Pauses execution for the given number of milliseconds.
| Parameter | Type | Description |
|---|---|---|
ms | number | Duration to wait in milliseconds |
Returns void
wait(1000); // wait 1 second
Pausing and controlling execution flow
Pauses execution for the given number of milliseconds.
| Parameter | Type | Description |
|---|---|---|
ms | number | Duration to wait in milliseconds |
Returns void
wait(1000); // wait 1 second