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

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