1
00:00:05,390 --> 00:00:06,770
In this section.

2
00:00:07,040 --> 00:00:11,630
Let's get started with an array of objects.

3
00:00:12,260 --> 00:00:20,710
This section is really important because this what you are going to deal with in real world applications.

4
00:00:20,720 --> 00:00:27,800
So let's get started and dive in more and know how we can use array of object.

5
00:00:27,800 --> 00:00:31,280
So when you say array of object, what does it mean?

6
00:00:31,340 --> 00:00:37,730
It simply means that array taking in an object as a values.

7
00:00:37,730 --> 00:00:46,100
So as you can see here, we have a variable called student and this student is an array.

8
00:00:46,100 --> 00:00:52,820
But instead inside the array we have individual objects of students.

9
00:00:53,120 --> 00:01:03,230
So it means that for arrays we can store or save any kind of data type being a number or boolean or

10
00:01:03,230 --> 00:01:11,330
object and even function, we can save functions into an array if we get to advanced section or function,

11
00:01:11,330 --> 00:01:19,010
you can see how we can pass a function into an array and a function as a function that is first class

12
00:01:19,010 --> 00:01:21,050
citizens and higher order functions.

13
00:01:21,050 --> 00:01:28,250
We have a section to talk about all these ones, but the takeaway here is that an array can save or

14
00:01:28,250 --> 00:01:30,830
can store any kind of data type.

15
00:01:30,830 --> 00:01:35,360
But the one that we are going to deal with is what array of objects.

16
00:01:35,360 --> 00:01:43,250
So let's see how we are going to create something like this and use array methods to loop through and

17
00:01:43,250 --> 00:01:44,750
get what we want.

18
00:01:44,750 --> 00:01:52,820
But before we get into that, let me introduce to you this important concept that is called data mutation.

19
00:01:53,300 --> 00:01:58,220
We are going to hear this term don't mutate the data or array.

20
00:01:58,250 --> 00:02:02,870
So let's dive in more and see what is data mutation?

21
00:02:02,870 --> 00:02:10,669
Well, technically, data mutation is a process of changing the value of an existing data.

22
00:02:10,789 --> 00:02:19,580
So any operation that calls to change the original data, meaning we have what mutated that particular

23
00:02:19,580 --> 00:02:20,270
data.

24
00:02:20,390 --> 00:02:26,060
So as a programmer, we need to avoid mutation as much as possible.

25
00:02:26,090 --> 00:02:29,690
It's really important to avoid data mutation.

26
00:02:29,930 --> 00:02:37,970
Well, the next video, let's have a look at how we can implement a logic that will cause mutation of

27
00:02:37,970 --> 00:02:38,810
an array.

28
00:02:38,810 --> 00:02:45,050
And with that concept, then we go ahead and talk about array of object methods.

29
00:02:45,050 --> 00:02:45,740
All right.

30
00:02:45,740 --> 00:02:49,040
So let's get into that in the next video.

