+ converts the value to a number.
a gets converted to 123 and 123 === 123.
b gets converted to NaN but NaN !== NaN (because NaN is never equal to another NaN according step 4a of the equality rules).
+ converts the value to a number.
a gets converted to 123 and 123 === 123.
b gets converted to NaN but NaN !== NaN (because NaN is never equal to another NaN according step 4a of the equality rules).