All challenges
Multiple ChoiceBeginner 30s

is vs == (internals)

Choose the best answer for: is operator
Options
  1. 1is checks if two references point to the same object
  2. 2is checks value equality and compares contents deeply
  3. 3is only works on integers and small immutable values
  4. 4is is the same as == and can be used interchangeably

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle