Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 245 Bytes

addSeconds.md

File metadata and controls

11 lines (8 loc) · 245 Bytes

Date.prototype.addSeconds(second)

Adds the seconds by the argument received in the date object.

let date = new Date();
console.log(date); //2020-09-16T04:07:10.927Z

date.addSeconds(29);
console.log(date); //2020-09-16T04:07:39.927Z