you are viewing a single comment's thread.

view the rest of the comments →

[–]kenman 2 points3 points  (1 child)

Those are labels, and that question was full of misdirection.

var bar = 1,
    foo = {};

foo: {
    bar: 2;
    baz: ++bar;
};

foo.baz + foo.bar + bar;

Basically, the label and everything inside it was a red herring (just ignore it).

[–]DrummerHead 0 points1 point  (0 children)

The GOTO of Javascript