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
var myFunkyLibrary = function(){ | |
var _prop1 = ''; // this property turned private. woozahh! | |
//function meant for internal usage. This is truly private now. | |
var _fn2 = function(){}; | |
this.prop2 = 'some value here'; // a public property. | |
this.fn = function(){}; //public function of the library | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment