This is a section that I'm waiting for to introduce to you, and that is JavaScript functions.
The backbone of every application lies in the function.
So what actually a function is?
So by the time we finish covering everything and the functions, then you can regard yourself as a JavaScript
developer.
And to be more precise, web developer.
So what is a function?
A function is a piece of code that is written to perform a specific task.
The key word here is perform specific task.
Well.
So let's say that we have an application which keep track of expenses.
We have a function to add expenses.
A function to delete expenses, a function to fetch all expenses.
You can see how a function is and a function are usually self-contained logic that can be reused across
your code.
So this makes them very important when it comes to JavaScript programming.
So that is all about a function, a piece of code that has been cobbled together like we put in a container.
Then we can reuse that function.
So in this video we have a look at why functions that is importance of a function.
But before we get to the importance, you have to look at how we can create a function.
Then we come back and then talk about.
Why do we need a function?