What's the output?
+true;
!'Lydia';You missed this one before
The unary plus tries to convert an operand to a number. true is 1, and false is 0.
The string 'Lydia' is a truthy value. What we're actually asking, is "Is this truthy value falsy?". This returns false.
Question 4 · see the original (opens in a new tab)
or press Enter