Created
June 17, 2020 20:03
-
-
Save zeptobook/b84bb687d655763f24501cb87528f11c 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
let func = () => { | |
return 'function call' | |
} | |
console.log(func()) // function call | |
func = null | |
console.log(func()) // error: Uncaught TypeError: func is not a function | |
console.log(func?.()) // undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment