Skip to content

Commit

Permalink
Merge pull request #10 from Wilcolab/copilot4
Browse files Browse the repository at this point in the history
feat: add power operation to calculate function
  • Loading branch information
peterszekeli authored Oct 30, 2024
2 parents 8e86914 + 7fb721c commit af15526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function calculate(operand1, operand2, operation) {
case '/':
uri += "?operation=divide";
break;
case '^':
uri += "?operation=power";
break;
default:
setError();
return;
Expand Down

0 comments on commit af15526

Please sign in to comment.