Function declaration vs Function expression


#1

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


#2

i think this documentation explains it really well:

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


#3

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


#4

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