Re: var a = b = "c"; Stopping, unable to continue
- --- In firstname.lastname@example.org, "marc_hunter" <yahoo@...> wrote:
>That form is confusing because many people expect that b is also declared, but it is not, so b becomes a global variable. To disambiguate, write it as
> Just came across some code which was overriding some functionality from the jquery datepicker. The code uses this construct:
> var a = b = c;
> which happens to gum up the jslint parser.
var a = (b = c);