Closed SunApriloy closed 7 years ago
I find an error in the explanation of 'true is false':
true == 'true' // -> true false == 'false' // -> false
Actually, the result of true == 'true' should be 'false'. Because true(boolean) is saw as 1(number),but 'true'(string) is saw as NaN(number), they are different.
true == 'true'
Great!
I find an error in the explanation of 'true is false':
Actually, the result of
true == 'true'
should be 'false'. Because true(boolean) is saw as 1(number),but 'true'(string) is saw as NaN(number), they are different.