Function declaration vs Function expression

What is the difference (besides the syntax) between a function declaration and a function expression? What is used each one for?

i think this documentation explains it really well:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions

Thank you. I’ll take a look. :muscle:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.