4 ms·
const something = function () {}; That is unlike any javascript function declaration I have ever seen. Why not just use the declaration syntax or the assignmen
by gatherhunterer 7y ago
const something = function () {};
That is unlike any javascript function declaration I have ever seen. Why not just use the declaration syntax or the assignment/arrow syntax? It’s just a keyword and an operator that take up space.
- mohitk05 7y agoPerfectly makes sense, thanks! I must have missed it as it was earlier export default function, will update this.