Hacker News new | ask | show | jobs
by gatherhunterer 2416 days 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.

1 comments

Perfectly makes sense, thanks! I must have missed it as it was earlier export default function, will update this.