I've started to check the toString method on nonprimitive values and mentioned one strange case
new Object().toString() // [object Object]
above code works properly
{}.toString() // Uncaught SyntaxError: Unexpected token '.'
I think the code is pretty the same , but in the second case it returns an error. Why is it? Could someone explain? Why no boxing there ?