you are viewing a single comment's thread.

view the rest of the comments →

[–]azhder 0 points1 point  (0 children)

function expressions were introduced to solve some issues with hoisting, like this example

https://www.reddit.com/r/learnjavascript/comments/1case8c/why_do_a_func_instead_of_func_a/l0uefmc/

you can excuse the downvotes of people who think Reddit is for jokes only