I'm examining some example javascript code and came upon something like the following:
a=b=c+1
I've never really coded in javascript before, so I'm not familiar with the order of evaluation...My gut tells me that the above would evaluate as a=b THEN b=c+1...so if b were initially 1 and c=2 then following that line of code a=1 and b=3
Is this correct, or is the evaluation order opposite, i.e. b=c+1 THEN a=b, in which case a=3 and b=3?