- A null
- B 'null'
- C 'object'
- D undefined
- Share this MCQ
Answer:
C
Share this MCQ
The result of the code is 'object'
.
In JavaScript, the typeof operator returns a string that represents the type of a value.
However, the typeof operator has a few quirks,
one of which is that it returns 'object'
for null values.
This is a known issue in JavaScript, and it can cause confusion for developers who are not aware
Share this MCQ