Variable Addition?
So I'm not that good at coding and I made a simple calculator, everything else works other than addition, it wont mathematically add the numbers together (ex. 1+1 = 11 other than 2) Heres the code: function Calc(){ var Var1 = prompt("What is the first digit of your equation?"); var Symbol = prompt("What is the mathematic symbol you are using for the equation? (/ for divison *for multiplication + for addition - for subtraction)"); var Var2 = prompt("What is the second digit of the equation?"); if (Symbol == "/"){ alert(Var1 / Var2); } if (Symbol == "*"){ alert(Var1 * Var2); } if (Symbol == "+"){ alert(Var1 + Var2); } if (Symbol == "-"){ alert(Var1 - Var2); } } Calc(); If any of you know how to fix this please tell me. (The simplest help best)