Lesson
Get the Length of an Object with JavaScripts Object.keys Method
In this lesson, we get the length of an Object by using the Object.keys() method. The Object.keys() method returns an array of the enumerable property names. Then we determine the length of the array, by using the length property.
- Duration
- 2 min
- Access
- Free
- Transcript
- Available
In this lesson, we get the length of an Object by using the Object.keys() method. The Object.keys() method returns an array of the enumerable property names. Then we determine the length of the array, by using the length property.