loading...

re: Logical assignment operators in JavaScript VIEW POST

FULL DISCUSSION
 

Very useful new features! Looks like you got the variables mixed up in the examples:

x || (y = z);

Should be

x || (x = y);

... unless I got this all wrong?

 

True, fixed it. I was trying to bring in another variable.

Code of Conduct Report abuse