Created
April 7, 2011 09:11
-
-
Save jmshoffs0812/907392 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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