DEV Community

Discussion on: Get Real Time Date and Time using JavaScript

Collapse
yoursunny profile image
Junxiao Shi

ESLint is unhappy seeing all those var and new Array.
Also, minutes < 10 ? '0'+minutes : minutes could be written as minutes.toString().padStart(2,'0').