Using multiple assignments in one expression

You can chain assignments to assign the same value to multiple variables in a single statement. This includes chain assignments for the results of an expression. The following code displays a chain assignment:

a=b=c=d*5

You can use the var operator in multiple assignments, but the variables with this operator must precede all others. For example:

//The following line is valid. 
var a = var b = c = d*5 
//The following line is not valid. 
// a = b = var c = d*5