22.
Which method can be used to recognize an array in JavaScript?
isArray()
isObject()
isString()
isNumber()
Correct: A
The isArray() method can be used in JavaScript to recognize whether a variable is an array or not. It returns true if the variable is an array, otherwise it returns false. The other options (A2, A3, A4) are not valid methods for recognizing an array.