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

power feature #29

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

power feature #29

wants to merge 1 commit into from

Conversation

stargazer4
Copy link
Contributor

@stargazer4 stargazer4 commented Oct 1, 2024

This pull request adds a new "power" operation to the calculator application, allowing users to perform exponentiation. The most important changes include updating the backend to support the new operation, modifying the frontend to handle the new operation, and adding a new button for the exponentiation operation.

Backend changes:

  • api/controller.js: Added a new function power to handle exponentiation in the operations object.

Frontend changes:

  • public/client.js: Updated the calculate function to recognize the ^ operator and map it to the new "power" operation.
  • public/index.html: Added a new button for the exponentiation operation (^) in the calculator interface.

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