{} + [] is the most stupid thing people joking about JS ever. Actually, the behavior is the same like for []+{} — it's calling toValue(), but in the CLI/browser console, when you're writing an expression starts from from {}, it actually means not an object, but a block, that means empty instructions set to compiler in this context. So the expression is just '+[]'.
{} + [] is the most stupid thing people joking about JS ever. Actually, the behavior is the same like for []+{} — it's calling toValue(), but in the CLI/browser console, when you're writing an expression starts from from {}, it actually means not an object, but a block, that means empty instructions set to compiler in this context. So the expression is just '+[]'.
Some serious art stuff