just for fun
I guess doing algorithms every day is a long-term investment in my life
const start = new Date("09/01/2018"); const now = new Date(); console.log(Math.ceil((now - start) / (1000 * 3600 * 24)));