javascript help needed please
i need help with some javascript that is probably so simple that you will laugh at me 
i am teaching myself javascript for my website, so that i can include some calculators for working out mpg, mileage to payback remap costs etc.
most of it is all working fine, particularly those functions involving variables that are multiplied, for example x = (y*z)
but i can't get a simple one like x =(y+z) to work
if i check with an alert, the numerical values for y and z are as they should be (for example 10 and 20), but then x comes out as 1020 rather than 30
it's doing my head in, please help
i am teaching myself javascript for my website, so that i can include some calculators for working out mpg, mileage to payback remap costs etc.
most of it is all working fine, particularly those functions involving variables that are multiplied, for example x = (y*z)
but i can't get a simple one like x =(y+z) to work
if i check with an alert, the numerical values for y and z are as they should be (for example 10 and 20), but then x comes out as 1020 rather than 30
it's doing my head in, please help
Last edited by foreigneRS; May 16, 2008 at 12:45 PM.
Thread
Thread Starter
Forum
Replies
Last Post
JoeyBoyden
Restorations, Rebuilds & Projects.
26
Jan 4, 2024 02:36 PM
jessie_rs
Ford RS Cosworth Parts for Sale
11
Jun 3, 2019 04:57 PM
rog
Cars for Sale
25
Sep 4, 2015 12:10 PM
borboyous
Cars for Sale
6
Aug 22, 2015 11:17 AM




