problem description
Type judgment
the environmental background of the problems and what methods you have tried
Type judgment
related codes
a = true
b = new Boolean(true)
b instanceof Boolean // true
a.constructor === b.constructor // true
why?
a instanceof Boolean ? false
what result do you expect? What is the error message actually seen?
can you analyze the difference between a = true and new Boolean (true), the principle of instanceof judgment