M
mwh
Hi.
I am making a calculator kind of calculator using javascript, and I am
trying to add numbers together. Example:
function additionCalculator(num1, num2){
var total = num1+num2
return total
}
I use this script to add num1 and num2 together. But, it just puts them
together, it does not add them together.
I also want to subtract and divide in my calculator, and I don't know
how to use these in JavaScript.
Can anyone help?
(____)
(\/)
/-------\/
/ | Mwh ||
- ||----||
I am making a calculator kind of calculator using javascript, and I am
trying to add numbers together. Example:
function additionCalculator(num1, num2){
var total = num1+num2
return total
}
I use this script to add num1 and num2 together. But, it just puts them
together, it does not add them together.
I also want to subtract and divide in my calculator, and I don't know
how to use these in JavaScript.
Can anyone help?
(____)
(\/)
/-------\/
/ | Mwh ||
- ||----||