it should evaluate to true because null and {} have the same type and x is null,
This is your mistake.
null
is of the Null Type{}
is of the Object Type
The types are different.
CLICK HERE to find out more related problems solutions.
it should evaluate to true because null and {} have the same type and x is null,
This is your mistake.
null
is of the Null Type{}
is of the Object TypeThe types are different.
CLICK HERE to find out more related problems solutions.