sum = sum + number; //add number to sum

adds sum (initially 0) to the value of number, assigning the result to sum (destroying its old value).