Q. What does console.log(typeof []) return?

A
'array'
B
'object'
C
'list'
D
'undefined'
Solution:

typeof [] returns ‘object’ because arrays are objects in JavaScript.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!