Skip to content

power features added #35

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

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

power features added #35

wants to merge 1 commit into from

Conversation

stargazer4
Copy link
Contributor

Backend Changes:

  • Added a power operation to the operations object in api/controller.js, which uses Math.pow to calculate the result.

Frontend Changes:

  • Updated public/client.js to handle the ^ operator in the calculate function by appending the power operation to the URI.
  • Modified the keypress event listener in public/client.js to recognize ^ as a valid operation key.
  • Added a button for the power operation (^) to the calculator UI in public/index.html.

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