1

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?

Fabri Pautasso
  • 485
  • 6
  • 17
CroMagnon
  • 1,218
  • 7
  • 20
  • 32

0 Answers0