Created
June 4, 2019 09:11
-
-
Save singhkumarhemant/50d76d5d7b2c5edb0cd36bd50f310345 to your computer and use it in GitHub Desktop.
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
| function foo() { | |
| console.log('sdjnkwjweujwkewkejbwekf') | |
| return true; // if no return statement then typeof foo() will be undefined. | |
| } | |
| foo.bar = "hello world"; | |
| console.log(typeof foo); // "function" | |
| console.log(typeof foo()); // "number" | |
| console.log(typeof foo.bar);// string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment