M
mwh
Hi.
I am using Javascript to make a kind of calculator. I am trying to do
addition, but when I use it, it just displays the numbers together, not
added together. Example:
function additionCalculator(num1, num2){
var total = num1 + num2
return total
}
I try to add the numbers, but it just puts them together.
Also, I am trying to use subtraction and division, but I do not know
how.
Can anybody help?
(____)
(\/)
/-------\/
/ | Mwh ||
- ||----||
I am using Javascript to make a kind of calculator. I am trying to do
addition, but when I use it, it just displays the numbers together, not
added together. Example:
function additionCalculator(num1, num2){
var total = num1 + num2
return total
}
I try to add the numbers, but it just puts them together.
Also, I am trying to use subtraction and division, but I do not know
how.
Can anybody help?
(____)
(\/)
/-------\/
/ | Mwh ||
- ||----||