Sign In
Curriculum
Array Length
Mark as Completed
Array Length
Create a function called
getArrayLength
that takes in an object and logs the length of the object to the console. If the object is not an array, throw a type error with the message 'Object is not an array'.
Click to go back
Click to go forward
Refresh preview
Console
Submit
Solution
00:00
Previous Lesson
Next Lesson