When to Use a Function Declaration vs. A Function Expression
Amber Wilkie

When to Use a Function Declaration vs. A Function Expression

articles

1 highlights

In short, use function declarations when you want to create a function on the global scope and make it available throughout your code.