3 ms·
But function getDate(date) is hoisted. The const version isn't.
by Zacru 8y ago
But function getDate(date) is hoisted.
The const version isn't.
- codedokode 8y agoI 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?