English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Please can someone help me? I am new to this have been trying hard for the 2nd day to sort it out but I cannot. It's driving me mad. Can you correct the following cods and sent it back to me? please please please :(

2007-05-06 23:13:29 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

I am not suprise it has driven you up the wall. It took me a while too.

You have an error in your last document.write statement.
It should be :-
document.write('The difference of ' + firstNum + ' and ' + secondNum + ' is ' + (firstNum 1 secondNum) + '
');

Can you see it?
It is the word "of" after difference. also I think that the sum should be a - in the brackets.

2007-05-07 00:15:10 · answer #1 · answered by AnalProgrammer 7 · 0 0

Another problem: you use ParseFloat and parseFloat, one of those must be incorrect. Not sure which one cause I don't do a lot of javascript programming.

Also: shouldn't you subtract when you get the difference :)

2007-05-07 08:21:31 · answer #2 · answered by Pfo 7 · 0 0

fedest.com, questions and answers