|
-
Feb 21st, 2001, 06:21 PM
#1
Thread Starter
Addicted Member
Adding numbers in JScript Problem
I am VERY VERY NEW to JScript, I am wondering what is wrong with this code to make a 2 number adder:
var a = prompt("First Number:","");
var b = prompt("Second Number:","");
alert (a + " + " + b + " = " + (a + b))
It does everything but it just combines then number, like 2+6=26
HELLP!
Last edited by Frankie902; Feb 22nd, 2001 at 04:01 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|