rino_2
Jun 28th, 2000, 01:18 AM
Hi Everybody,
I've just created a calculator in JavaScript. Everything is working just fine apart from the plus button. I have a number in the variable num1 and a number in the variable num2. When I say num1 += num2 the values of both are concatenated and placed into num1. What I would like to happen is the values of both be added to each other and sent to num1. Could you please help me? Thanks
You can see my calculator here http://members.xoom.com/rino_2/jscalc.htm it's not great, I'm new to JavaScript.
I've just created a calculator in JavaScript. Everything is working just fine apart from the plus button. I have a number in the variable num1 and a number in the variable num2. When I say num1 += num2 the values of both are concatenated and placed into num1. What I would like to happen is the values of both be added to each other and sent to num1. Could you please help me? Thanks
You can see my calculator here http://members.xoom.com/rino_2/jscalc.htm it's not great, I'm new to JavaScript.