I am confused about 2nd and 3rd, If I am understanding it, it is saying 1 is not equal ‘1’, here it does type coercin which should make both a number then why and how 1 is not equal to 1, same thing with third, it is just double quote vs single quote.
Am I missing something?
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Challenge Information:
Basic JavaScript - Comparison with the Inequality Operator
The inequality operator checks for inequality. It returns true if the expression is unequal and returns false if it’s equal. Here, a type of coercion will be done, the string will be turned into a number, and the number will be 1. Since 1 will be equal to 1 after type coercion, it returns false. The third one is similar to the second only that they’ve used single quotation marks.
For the inequality operator, pretend you’re in the mirror verse. Whatever the comparison is in the mirror verse, then on the other side of the mirror the result will be the opposite.