In Firefox 3.5, I type this in the Firebug console :
false=={} // => evals to false {}==false // syntax error
What is the explanation for this ?
Simply to say, {}==false are compiled by Js compiler to {};==false, so it's syntax error. you should write ({})==false and it'll return false.
{}==false
{};==false
({})==false