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