Home » HTML » Html miscellaneous » Question
  1. typeof “null” in JavaScript is _______.
    1. undefined
    2. object
    3. string
    4. number
    5. None of these
Correct Option: B

typeof “null” in JavaScript is an object. Basically null indicates nothing like it is a thing that does not exist. It is like a bug in JavaScript that its typeof comes to be an object. For emptying an object we can set it to null.



Your comments will be displayed only after manual approval.