3 ms·
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 with
by clessg 11y ago
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 = ...`.