SyntaxFix
Write A Post
Hire A Developer
Questions
Try this way.
Date.prototype.addSeconds = function(seconds) { var copiedDate = new Date(this.getTime()); return new Date(copiedDate.getTime() + seconds * 1000); }
Just call and assign new Date().addSeconds(10)
new Date().addSeconds(10)