+ 1
I need help with my % button
I need help with my % button in my calculator
7 odpowiedzi
+ 3
Hi, you already have code needed to do % calculation. so you don't need percent function.
Change line 15, <button onclick="percent()">%</button>
to <button onclick="add('%')">%</button>
and remove function percent(key) cause it brings syntax error
If you do that button % will work and will get result with function calc()
hope that helps
+ 1
https://code.sololearn.com/WQ6isIZ2pR2b/?ref=app
try like this.
0
You have not closed the opened bracket after innerHtml à line 24. Close it and run your program.😉
0
Thanks, but it doesn't work
0
Yeah but I need that 5%=0.05
- 2
Is it not working. I see from code button % is working