In this video.
Let's talk about another method that we can use to treat over objects, and that is object values.
Well, so let me comment this one.
Have some space to see everything.
Now, let me bring back this object again.
Let me copy it.
And then let me comment it out.
And now here comment.
And let's say this is my object.
Dot values.
So let's see.
Let me pace it.
The object, the values method works opposite to the object keys.
So the keys give us the keys of the object.
And the values give us the values of an object.
So what actually is the object that values?
Well, this method works opposite to that of the object keys.
It returns the values of all properties in the object as an array.
Then you can loop through the values by using any array looping method.
So instead of getting the.
The.
Keys, the.
This method gives us the values and put them in an array.
So let's have a look.
So here I would take let me say const and I would say object values is equal to.
Object.
Dot values then pass in the person object as that.
So if I can answer that log, let's see the values here.
Now, instead of the keys, I get the values.
You see that we have the first name which is John inside this last name though H 13 and then continuous
as that.
So this gives us the values inside of the keys.
So we can also go ahead and then loop through these values.
Okay, that is it about that.
So what about I think we have one more left and that is the object dot entries.
So let's get into that and then get ready for your coding challenge or coding challenges.