get current local time javascript code example
Example 1: return current date in javascript
let today = new Date().toLocaleDateString()
console.log(today)
Example 2: javascript calculate time
console.time("timer"); //start time with name = timer
console.timeEnd("timer"); //end timer and log time difference