Skip to content

Instantly share code, notes, and snippets.

@gu3st
Created November 28, 2012 01:06
Show Gist options
  • Save gu3st/4158332 to your computer and use it in GitHub Desktop.
Save gu3st/4158332 to your computer and use it in GitHub Desktop.
javascript2
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