Results 1 to 6 of 6

Thread: Add numbers in JScript

Threaded View

  1. #1

    Thread Starter
    Addicted Member Frankie902's Avatar
    Join Date
    Feb 2001
    Location
    Lindenwold, NJ, USA
    Posts
    217

    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
  •  



Click Here to Expand Forum to Full Width