Last active
June 16, 2019 06:58
-
-
Save happymishra/490f42538e50c77e34249381a79a8625 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timerId = setTimeout(function (){ | |
console.log("This function will be removed before it's executed") | |
}, 100) | |
clearTimeout(timerId) | |
// No output will be displayed as the setTimeout callback function | |
// will be cancelled before it will be executed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment