"{} === null" throws syntax error in developer console
javascript, syntax-error
Solution
Because `{}` is treated as an empty block. You can wrap it in parentheses to force an expression:
({} === null)
Problem
Why is it that when i type `{} === null` into the console it throws SyntaxError: Unexpected token === `null === {}` gives me false as expected.