logo
logo

Array Length

Beginner

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'.
Console
Submit
Solution
00:00