InterviewSolution
Saved Bookmarks
| 1. |
What are the difference between setTimeout() and clearTimeout()? |
|
Answer» setTimeout() : It can be used to schedule CODE EXECUTION after a designated amount of milliseconds. function myFunc(arg) { clearTimeout() : It can be used to CANCEL timeout which are set by setTimeout(). console.log('before IMMEDIATE'); |
|