+ 2

Please what is wrong with this calculator

I have tried and tried yet it is not giving result but if I take this code to my lappy it gives me accurate result or is it that SOLOLEARN do not accept onclick? please I need ur advice and suggestions https://code.sololearn.com/Wzs997Er0cAj/?ref=app https://code.sololearn.com/Wzs997Er0cAj/?ref=app

12th Sep 2017, 3:51 AM
Isaac Frank
Isaac Frank - avatar
3 RĂ©ponses
+ 3
Check your following HTML LINE 7 (remove that line) and LINE 14. there is a missed " " after "btn"onclick in LINE 14. a space. from : <button class="btn"onclick="shownum('1')"><strong>1</strong></button> to : <button class="btn" onclick="shownum('1')"><strong>1</strong></button> and on your JS , last LINE add "}" and everything run well.. have fun.
12th Sep 2017, 4:04 AM
Mikhael Anthony
Mikhael Anthony - avatar
+ 1
you're very welcome @Isaac :)
12th Sep 2017, 4:33 AM
Mikhael Anthony
Mikhael Anthony - avatar
0
Thanks @tony
12th Sep 2017, 4:29 AM
Isaac Frank
Isaac Frank - avatar