Created
January 6, 2016 18:37
-
-
Save yask123/c520d7f67f5fa5910e82 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
yasksrivastava at Yasks-MacBook-Pro in ~/learnyoureact | |
$ node | |
> function calc(){ | |
... this.a = 5; | |
... } | |
undefined | |
> calc() | |
undefined | |
> calc | |
[Function: calc] | |
> calc.a | |
undefined | |
> function calc(){ | |
... return this.a | |
... } | |
undefined | |
> calc | |
[Function: calc] | |
> calc() | |
5 | |
> function calc(){ | |
... this.b = 'yask'; | |
... } | |
undefined | |
> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment