1
00:00:00,690 --> 00:00:01,620
In this video.

2
00:00:01,620 --> 00:00:09,660
Let's talk about another method that we can use to treat over objects, and that is object values.

3
00:00:09,960 --> 00:00:13,260
Well, so let me comment this one.

4
00:00:14,810 --> 00:00:17,330
Have some space to see everything.

5
00:00:17,960 --> 00:00:20,600
Now, let me bring back this object again.

6
00:00:20,610 --> 00:00:22,100
Let me copy it.

7
00:00:22,880 --> 00:00:25,130
And then let me comment it out.

8
00:00:25,130 --> 00:00:27,380
And now here comment.

9
00:00:27,380 --> 00:00:29,540
And let's say this is my object.

10
00:00:30,110 --> 00:00:31,670
Dot values.

11
00:00:32,479 --> 00:00:33,220
So let's see.

12
00:00:33,230 --> 00:00:34,220
Let me pace it.

13
00:00:34,670 --> 00:00:39,950
The object, the values method works opposite to the object keys.

14
00:00:40,190 --> 00:00:43,310
So the keys give us the keys of the object.

15
00:00:43,310 --> 00:00:46,190
And the values give us the values of an object.

16
00:00:46,400 --> 00:00:49,360
So what actually is the object that values?

17
00:00:49,370 --> 00:00:55,520
Well, this method works opposite to that of the object keys.

18
00:00:56,060 --> 00:01:01,820
It returns the values of all properties in the object as an array.

19
00:01:02,450 --> 00:01:09,260
Then you can loop through the values by using any array looping method.

20
00:01:09,410 --> 00:01:11,000
So instead of getting the.

21
00:01:11,180 --> 00:01:11,320
The.

22
00:01:11,330 --> 00:01:13,220
Keys, the.

23
00:01:14,050 --> 00:01:17,350
This method gives us the values and put them in an array.

24
00:01:17,680 --> 00:01:18,760
So let's have a look.

25
00:01:18,940 --> 00:01:27,610
So here I would take let me say const and I would say object values is equal to.

26
00:01:28,600 --> 00:01:29,470
Object.

27
00:01:29,860 --> 00:01:35,690
Dot values then pass in the person object as that.

28
00:01:35,710 --> 00:01:40,600
So if I can answer that log, let's see the values here.

29
00:01:40,630 --> 00:01:43,990
Now, instead of the keys, I get the values.

30
00:01:44,380 --> 00:01:53,650
You see that we have the first name which is John inside this last name though H 13 and then continuous

31
00:01:53,650 --> 00:01:54,300
as that.

32
00:01:54,310 --> 00:01:58,180
So this gives us the values inside of the keys.

33
00:01:58,390 --> 00:02:02,380
So we can also go ahead and then loop through these values.

34
00:02:02,600 --> 00:02:05,050
Okay, that is it about that.

35
00:02:05,530 --> 00:02:11,050
So what about I think we have one more left and that is the object dot entries.

36
00:02:11,050 --> 00:02:17,650
So let's get into that and then get ready for your coding challenge or coding challenges.

