Is there a name for this? Here's an example of what I'm trying to say:
var i = 0;
var j = 0;
i = j = 1;
So obviously both i
and j
are set to 1. But is there a name for this practice? Also, in terms of good coding standards, is this type of thing generally avoided? Can I also get an example or explanation of why it is/isn't good practice?