Created
April 17, 2016 08:52
-
-
Save DaniGithub/6aa23dd020d73a81e9284f1e7fad49a6 to your computer and use it in GitHub Desktop.
JavaScript Functions
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() { | |
return 42; | |
} | |
foo.bar = "hello world"; | |
typeof foo; // "function" | |
typeof foo(); // "number" | |
typeof foo.bar; // "string" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment