0

I want to sum and display sum with two number. i have error. Thanks you.

To sum two number with number2. https://code.sololearn.com/WO7uufAX2cXz/?ref=app

1st Apr 2021, 12:39 PM
Malick Diagne
Malick Diagne - avatar
2 Respuestas
0
Malick Diagne You are passing total element but pass only values.. and also convert to numbers before passing... line. No: 24 addi.innerHTML = add (Number(paragraph.innerHTML),Number(paragraph2.innerHTML));
1st Apr 2021, 12:48 PM
Jayakrishna 🇮🇳
0
Line 7: return Number(number.innerHTML) + Number(number2.innerHTML) ;
1st Apr 2021, 12:49 PM
Ipang