Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
New to objects in JS, no idea of the differences here: (why would you use one over the other)
function Object(){
}
Object.prototype.func = function(){
//code
};
function Object(){
this.func = function(){
//code
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment