1
00:00:01,020 --> 00:00:10,050
This is a section that I'm waiting for to introduce to you, and that is JavaScript functions.

2
00:00:11,030 --> 00:00:16,790
The backbone of every application lies in the function.

3
00:00:17,300 --> 00:00:19,910
So what actually a function is?

4
00:00:20,180 --> 00:00:27,980
So by the time we finish covering everything and the functions, then you can regard yourself as a JavaScript

5
00:00:27,980 --> 00:00:28,890
developer.

6
00:00:28,910 --> 00:00:32,220
And to be more precise, web developer.

7
00:00:32,240 --> 00:00:35,060
So what is a function?

8
00:00:35,960 --> 00:00:42,650
A function is a piece of code that is written to perform a specific task.

9
00:00:42,680 --> 00:00:47,750
The key word here is perform specific task.

10
00:00:48,840 --> 00:00:49,590
Well.

11
00:00:50,220 --> 00:00:57,510
So let's say that we have an application which keep track of expenses.

12
00:00:58,610 --> 00:01:02,240
We have a function to add expenses.

13
00:01:03,210 --> 00:01:08,870
A function to delete expenses, a function to fetch all expenses.

14
00:01:08,880 --> 00:01:20,100
You can see how a function is and a function are usually self-contained logic that can be reused across

15
00:01:20,100 --> 00:01:20,940
your code.

16
00:01:22,250 --> 00:01:28,640
So this makes them very important when it comes to JavaScript programming.

17
00:01:29,810 --> 00:01:38,600
So that is all about a function, a piece of code that has been cobbled together like we put in a container.

18
00:01:38,630 --> 00:01:41,720
Then we can reuse that function.

19
00:01:42,510 --> 00:01:49,770
So in this video we have a look at why functions that is importance of a function.

20
00:01:50,520 --> 00:01:56,880
But before we get to the importance, you have to look at how we can create a function.

21
00:01:57,120 --> 00:01:59,790
Then we come back and then talk about.

22
00:02:00,880 --> 00:02:03,670
Why do we need a function?

