+ 8

Form Not working

I have just made a form using html and javascript to find out the sum of two numbers but it always shows NaN , What can be the problem??? https://code.sololearn.com/WFCOJSc98BBy

21st Dec 2017, 3:24 PM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
4 ответов
+ 8
You need to remove the quotation marks("") from form.ab.value and form.bc.value
21st Dec 2017, 3:50 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 7
after writing first no and then second and when i click submit NaN is displayed...not the sum
21st Dec 2017, 3:49 PM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
+ 7
solved......i just removed " " after parseInt ..and it worked... thnx @Nafis
21st Dec 2017, 4:07 PM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
+ 1
Yo, cool code
23rd Dec 2017, 6:52 PM
The Program
The Program - avatar