JavaScript Functions| Declaration| statements
![JavaScript Functions| Declaration| statements JavaScript Functions| Declaration| statements](https://www.futurefundamentals.com/wp-content/uploads/2022/01/R-1-710x300.png)
When developing an application, you often need to perform the same action in many places. For example, you may want to show a message whenever an error occurs. To avoid repeating the same code all over places, you can use