Last active
February 21, 2020 10:49
-
-
Save Farenheith/0912efa9ad12ef221405d1376c1eaebf to your computer and use it in GitHub Desktop.
Example of testable code using setTimeout
This file contains hidden or 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
export function doubleConsole() { | |
console.log('Now you see me'); | |
setTimeout(() => console.log("Now you don't"), 100); | |
setImmediate(() => console.log("Now still")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment