Beginner
JavaScript
Q32 / 100
What does Array.isArray() do?
Correct! Well done.
Incorrect.
The correct answer is B) Returns true if the argument is an array
B
Correct Answer
Returns true if the argument is an array
Explanation
Array.isArray([]) returns true. typeof [] returns "object", so Array.isArray() is the reliable way to check for arrays.
Progress
32/100