On my free time, I was just playing with js console, I got an unexpected error:
js> [] == {}
false
js> {} == []
typein:5: SyntaxError: syntax error:
I tried with ===
:
js> [] === {}
false
js> {} === []
typein:9: SyntaxError: syntax error:
Am thinking wrong here?
I tested this with Firefox, Chrome and jscore.