You are adding strings. You need to make them ints parseInt(string, radix)
.
var results12 = parseInt(pce,10) + parseInt(epbcac,10);
As @Joe mentioned radix
is optional, but if you dont specify it the browser could use a different radix and could cause unpredictable behavior.
Alternatively, as @DavidMcMullin suggested a Savvier way to do it is to use the unary +
operator:
var results12 = +pce + + epbcac
Radix is the base of the number system. Meaning the numbers that make up the system:
Binary: radix=2
01010101
Decimal: radix=10
0123456789
Hex: radix=16
0123456789ABCDEF