Created
January 24, 2015 01:28
-
-
Save karthikselva/5406e5b7234413228247 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
| var MyObject = ( function () { | |
| var myPrivate1,myPrivate2; | |
| var myPublicParts = { | |
| public1: function () { | |
| console.log(myPrivate1); | |
| }, | |
| public2: function () { | |
| console.log(myPrivate2); | |
| }; | |
| return myPublicParts; | |
| })(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment