Whats in this post?
- Background and Explanation of the code
To copy code: Click “View Source” on the right of this code snippet.
Background and Explanation of the code
- setTimeout() – executes a code some time in the future
- clearTimeout() – cancels the setTimeout()