How to get current timestamp in JavaScript

Datetime
Last updated Dec 26, 2017
const timestamp = Date.now();

console.log(timestamp); //in milliseconds
1514300333756