I accidentally got
undefined == true and
undefined == false that both of them returns false.
!undefined returns true.
And this is the question:
What's the algorithmic difference(s) between
someVariable == false?
If i want to explain it more, type
undefined == false ? 't' : 'f' in your browser's console, and it returns,
'f' ( as explained above ).
But if you type
!undefined ? 't' : 'f' it returns
So obviously there's difference(s) between them and how they're working.
someVar == false. I guess the second one convert both of them to a comparable value and compares them? What's about the first one?