Skip to content

Glossary: JavaScript Beyond the Basics

setTimeout

Also written: setTimeout(callback, ms)

A function that runs a callback after a delay in milliseconds. It returns at once, and the callback runs later through the event loop.

Where the book teaches it

Related terms

Event loopCallback