Single Choice
Difficult
QWhat is the result of the following code?
var arr = [1, 2, 3];
console.log(Array.isArray(arr));
ID: #4907
Javascript Data Types MCQ
183 views
Question Info
#4907Q ID
DifficultDifficulty
Javascript Data Types MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The Array.isArray method in JavaScript is a method that can be used to determine whether a value is an array.
In this case, the Array.isArray method is called with the array [1, 2, 3] as the argument.
Since the value is an array, the Array.isArray method will return true.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic