Skip to content

Instantly share code, notes, and snippets.

@jacky810124
Last active February 25, 2016 08:59
Show Gist options
  • Save jacky810124/e45687f08684c9118c1f to your computer and use it in GitHub Desktop.
Save jacky810124/e45687f08684c9118c1f to your computer and use it in GitHub Desktop.
function Post() {
//example 1
this.getTen = function(){}
}
//example 2
Post.prototype.getTen = function(){}
//example 3
Post.getTen = function(){}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment