4 ms·
Hmmm... I think your calculation is off... var now = new Date(); var then = new Date(); then.setYear(then.getYear() - 14); console.log(Math.fl
by tracker1 9y ago
Hmmm... I think your calculation is off...
var now = new Date();
var then = new Date();
then.setYear(then.getYear() - 14);
console.log(Math.floor((now - then) / 1000))
// 60400079994 (seconds)
- sharmajai 9y agoIt's a pun on "14!".