How to get current timestamp in JavaScript

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

console.log(timestamp); //in milliseconds
1514300333756
Date.now on MDN