79740993

Date: 2025-08-20 11:22:09
Score: 1
Natty:
Report link

As @0stone0 pointed out in the comments, it looks like the action is refreshing the page before calling the function.

Also, it might be necessary to add event.preventDefault() to your calculate() method so it executes and not refreshes the page.

Something like:

function calculate(event){
    event.preventDefault();
    ...
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @0stone0
  • Low reputation (0.5):
Posted by: Carlos Martel Lamas