Question is in the title. I've just tried to run next statements in Chrome console and got strange (as for me) result:
true == 'true' // returns false
'true' == true // returns false
Why does it go such way? Why doesn't typecast work there, but in the next statement works?
if ('true') true // returns true