Before performing an operation on operands, all operands must be converted to primitive type, I understand that how toPrimitive()
works in javascript
Here 1+{}
gives "1[object Object]"
which I expects
But in case of {}+1
I expect [object Object]1"
but it gives 1
What I am missing?