In this section.
Let's get started with an array of objects.
This section is really important because this what you are going to deal with in real world applications.
So let's get started and dive in more and know how we can use array of object.
So when you say array of object, what does it mean?
It simply means that array taking in an object as a values.
So as you can see here, we have a variable called student and this student is an array.
But instead inside the array we have individual objects of students.
So it means that for arrays we can store or save any kind of data type being a number or boolean or
object and even function, we can save functions into an array if we get to advanced section or function,
you can see how we can pass a function into an array and a function as a function that is first class
citizens and higher order functions.
We have a section to talk about all these ones, but the takeaway here is that an array can save or
can store any kind of data type.
But the one that we are going to deal with is what array of objects.
So let's see how we are going to create something like this and use array methods to loop through and
get what we want.
But before we get into that, let me introduce to you this important concept that is called data mutation.
We are going to hear this term don't mutate the data or array.
So let's dive in more and see what is data mutation?
Well, technically, data mutation is a process of changing the value of an existing data.
So any operation that calls to change the original data, meaning we have what mutated that particular
data.
So as a programmer, we need to avoid mutation as much as possible.
It's really important to avoid data mutation.
Well, the next video, let's have a look at how we can implement a logic that will cause mutation of
an array.
And with that concept, then we go ahead and talk about array of object methods.
All right.
So let's get into that in the next video.