Skip to content

Instantly share code, notes, and snippets.

@karenpeng
Created January 13, 2016 08:52
Show Gist options
  • Save karenpeng/1a8e6906813dbb8ae6c6 to your computer and use it in GitHub Desktop.
Save karenpeng/1a8e6906813dbb8ae6c6 to your computer and use it in GitHub Desktop.
function A(){
var _private = 0;
this.getter = function(){
return _private;
}
this.setter = function(val){
_private = val;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment