Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 261 Bytes

addMilliSeconds.md

File metadata and controls

11 lines (8 loc) · 261 Bytes

Date.prototype.addMilliSeconds(second)

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

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

date.addMilliSeconds(102);
console.log(date); //2020-09-16T04:24:29.517Z