Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pow feature #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

pow feature #15

wants to merge 1 commit into from

Conversation

stargazer4
Copy link
Contributor

This pull request introduces an exponentiation operation to the existing arithmetic operations in the codebase. The changes include adding a new 'pow' operation in the calculate function, updating the calculate function in the client-side JavaScript to handle the '^' operation, adding a new button in the HTML for the '^' operation, and adding new tests for the 'subtract' operation.

  • api/controller.js: Added a 'pow' operation in the calculate function to handle exponentiation.
  • public/client.js: Updated the calculate function to handle the '^' operation which corresponds to exponentiation.
  • public/index.html: Added a new button for the '^' operation which triggers the exponentiation operation.
  • test/arithmetic.test.js: Added new tests for the 'subtract' operation. It's worth noting that the comment indicates these tests should cover subtraction, multiplication, division, and exponentiation, but only subtraction tests have been added in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant