Variable Trace 1 Construct the variable trace and predict the output: var x = 5, y = 2; x = x + 2 * y; y = 3 * x - y; document.write(x + " " + y); x = 5 * x; y = y + 4; document.write(x + y); Variable Trace: Output: 9 25 74 x y --------+------- 5 2 9 25 45 29 Variable Trace 2 var x = 1, y = 3; if (x + y > 5) { x = 2 * x + 3; y = 3 + x + 2; document.write(x + " " + y); } else { x = 3 * x + 1; y = 2 * x - 1; document.write(x + " " + y); } x = 5 * y; y = 4 * x; document.write(x + " " + y); Variable Trace: Output: x y x + y > 5 4 7 35 140 --------+-------+----------- 1 3 false 4 7 35 140