Q. What does console.log(typeof []) return?
Solution:
typeof [] returns ‘object’ because arrays are objects in JavaScript.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
typeof [] returns ‘object’ because arrays are objects in JavaScript.
Strengthen Your Practice with our comprehensive question bank.