Re:Constantly Confusing ‘const’
by clessg on Tuesday September 08, 2015 @04:17PM
(#10187978)
I agree on function declarations even though I avoid hoisting in other situations. I don't see any serious downsides to using function declarations (unless within a function, perhaps), and I find it easier to read, especially in ES6: `export function diameter` vs. `export const diameter = ...`.
[ Parent
| on HN ]
There are no comments on this comment yet.