JavaScript Functions: Understanding Declarations vs. Expressions
What is a Function?
A function is just a block of code designed to perform a particular task. We use them so we don't have to write the same code over and over again.
Imagine you want to greet a user.
maiamansingh.hashnode.dev2 min read