Comma operator in Arrow functions

Leon Arnott leonarnott at gmail.com
Sun Mar 15 01:53:38 UTC 2015


On Sun, Mar 15, 2015 at 5:52 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>
wrote:

>
>
> Finally, note that
>
> console.log(a=1,2)
>
> assigns the value 1 to a, but outputs 2
>
>
I think you meant to type `console.log((a=1,2))` ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150315/cef0f800/attachment.html>


More information about the es-discuss mailing list