var el1,el2 = [1,2] why not?

Ariya Hidayat ariya.hidayat at gmail.com
Wed Jul 4 17:47:47 PDT 2012


> This might be silly, but let the code speak :
>
> var param1,param2 = window.location.search.replace('?','').split('&')
> a,b=b,a

To see how a JavaScript parser understands the semantic of that code,
just paste it into http://esprima.org/demo/parse.html.



-- 
Ariya Hidayat, http://ariya.ofilabs.com
http://twitter.com/ariyahidayat


More information about the es-discuss mailing list