Portrait Dr. Axel Rauschmayer
Dr. Axel Rauschmayer
Homepage | Twitter
Cover of book “JavaScript for impatient programmers”
Book, exercises, quizzes
(free to read online)
Cover of book “Deep JavaScript”
Book (50% free online)
Logo of newsletter “ES.next news”
Newsletter (free)

What object is not an instance of Object?

[2012-08-28] dev, javascript, jslang
(Ad, please don’t block)

Question: What object is not an instance of Object? Or, put differently: What value v makes the following three expressions true?

    typeof v === "object"
    v !== null
    !(v instanceof Object)

Show answer

References

  1. Improving the JavaScript typeof operator
  2. JavaScript values: not everything is an object