(Almost) everything is expression

gaz Heyes gazheyes at gmail.com
Fri Nov 11 10:25:44 PST 2011

On 11 November 2011 18:01, Dmitry Soshnikov <dmitry.soshnikov at gmail.com>wrote:

> var foo = {
>  // do stuff
>  100;
> };

What would be the result of a labelled statement? You'd need labels to work
within expressions since you'd probably want to do:

but then what if you do:

Is 1 divided by the result of the for loop or is it divided by undefined?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111111/716e7b30/attachment.html>

More information about the es-discuss mailing list