Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why does `True == False is False` evaluate to False in Python? (2013). Parent comment
({}) + [] -> "[object Object]"
Did you try to do this?
{a: 1} + [] -> 0
{a: 1, b: 2} + [] -> Uncaught SyntaxError: Unexpected token ':'
{ a: while (true) while (true) break a; }
Did you try to do this?
That's interpreted as the statement 1 labeled a, not as an object. This makes it obvious it's not an object: JavaScript supports labels so you can continue/break multiple levels at once: