$ 0 0 The error is in this line:} else if (box 2 > box 1) { The names of the variables are box2 and box1, without spaces.