+ 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
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.
+ 1
you're very welcome @Isaac
:)
0
Thanks @tony