Why create an inline function instead of const/let declaration

For example, in the code below, why not just declare const WHATEVER = value; since it’s constant and won’t be changed anyway? Learning that in Javascript this is possible, but don’t see the application. Thanks!

const myFunc = () => "value";

45 thoughts on “Why create an inline function instead of const/let declaration”

Leave a Comment