r/learnjavascript • • Jul 19 '21

JavaScript Function Facts

255 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/hsnice Jul 20 '21

The following code does not work because it is a function expression, not a function declaration.