Skip to content

Instantly share code, notes, and snippets.

Mike Krieger mikeyk

  • Instagram
  • San Francisco, CA
Block or report user

Report or block mikeyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:324606
function Post(){};
Post.prototype = {test : function(){console.log("hello there")}};
p = new Post();
/* but I prefer to do two things differently: define my member functions in the 'class' function, and have objects inherit from objects: */
function Post() {
this.test = function(){ console.log("hello there") }
You can’t perform that action at this time.