Why below code is working:
({}.toString()) // "[object Object]"
but this not:
{}.toString() //Uncaught SyntaxError: Unexpected token '.'
Why below code is working:
({}.toString()) // "[object Object]"
but this not:
{}.toString() //Uncaught SyntaxError: Unexpected token '.'