Created
November 28, 2012 01:06
-
-
Save gu3st/4158332 to your computer and use it in GitHub Desktop.
javascript2
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
function Awesome(){ | |
var property1 = 'xxx'; | |
var property2 = 'yyy' | |
}; | |
Awesome.prototype.clear = function(){ | |
this.property1 = ''; | |
this.property2 = ''; | |
} | |
var y = new Awesome(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment