3 different ways of getting the current time

March 19, 2021 1 min read
// Option 1
new Date().getTime()

// Option 2
+new Date()

// Option 3
Date.now()