Hacker News new | ask | show | jobs
by Zacru 2983 days ago
But function getDate(date) is hoisted. The const version isn't.
1 comments

I don't think it is a good idea to rely on such subtle differences that are not well known among developers. We want to write code that is easy to maintain, not compete in knowing ECMA specs, right?