2 ms·
So FYI most of those are misleading. When he's typing into a terminal and it does {}+{} it's interpreting it as and empty code block, and then an unary plus on
by esrauch 6y ago
So FYI most of those are misleading. When he's typing into a terminal and it does {}+{} it's interpreting it as and empty code block, and then an unary plus on an empty object, similar to:
{
};
+{}
If you put parentheses around it, or assign it to a value and then print that value then {}+{} isn't empty string.