This question has a few answers (sort of) already: Javascript: var = var = function, Multiple Variable Assignments in one row, etc. but I would like to ask a different kind of question about it.
So, this is quite handy to be able to use:
var av = 0, bb;
var cvs = bb = av;
console.log(cvs,bb) // outputs 0 0
My question is, how cross-browser is this? Can I get away with using this everywhere, including IE6 or whatnot, or should I just stick to:
var av = 0, bb;
bb = av; cvs = av;
And if you change one variable at any point in the code, does that mean that the the other variable is changed too, or is there no connection outside of the initial assignment?
Thanks!