-1

In javaScript typeof null is an object is considered a bug. It should be null. What is the reason why this is not fixed in the latest version of javascript?

3
  • Please provide more context and (preferably) references. Commented May 7, 2015 at 5:50
  • Marking duplicate doesn't take you to the intended answer, which is ref. zan: stackoverflow.com/a/7968470/1693593 Commented May 7, 2015 at 6:05
  • What duplicate? I was not asking between the difference of null and undefined. Try to read the question. Commented May 7, 2015 at 12:11

1 Answer 1

0

Null is not an object, its a primitive value.

Reference: link see Axel Rauschmayer answer

Sign up to request clarification or add additional context in comments.

1 Comment

Try this : console.log(typeof null)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.