I tried to create a calculator that sums percentages using different buttons. However, I had problems creating HTML and JavaScript for the same project. Conversely, when I used the HTML widget, the buttons worked well.
Can someone help me identify some solution to the JavaScript code?