Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jmshoffs0812/907392 to your computer and use it in GitHub Desktop.
Save jmshoffs0812/907392 to your computer and use it in GitHub Desktop.
// New REPL session, v0.4.5
var d = new Date();
d // 'Thu, 07 Apr 2011 09:09:17 GMT'
// New session
Date.prototype.addDays = function(days){ this.setDate(this.getDate()+days); return this };
var d = new Date();
d // {}
// New session
var d = new Date();
d // Thu, 07 Apr 2011 09:10:19 GMT
Date.prototype.addDays = function(days){ this.setDate(this.getDate()+days); return this };
d // {} WTF?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment