In Chrome console this JavaScript
command throws error:
> {} == 1 // Uncaught SyntaxError: Unexpected token ==
This command does not throw any error:
> ({} == 1)?true:false // false
Why first command throws error, but second doesn't?
In Chrome console this JavaScript
command throws error:
> {} == 1 // Uncaught SyntaxError: Unexpected token ==
This command does not throw any error:
> ({} == 1)?true:false // false
Why first command throws error, but second doesn't?