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

added functionality #7

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

added functionality #7

wants to merge 1 commit into from

Conversation

stargazer4
Copy link
Contributor

This pull request introduces a new 'power' operation to the calculator application. The changes involve the addition of the 'power' operation in the calculation function in api/controller.js, the handling of the new operation in the calculate function in public/client.js, and the addition of a new button in the user interface in public/index.html.

Here are the key changes:

  • api/controller.js: Added a new 'power' operation in the calculation function. This operation will return the result of the first number raised to the power of the second number.
  • public/client.js: Updated the calculate function to handle the new 'power' operation. When the '^' operation is selected, the URI is updated to include "?operation=power".
  • public/index.html: Added a new button in the calculator's user interface for the 'power' operation. When this button is pressed, it triggers the operationPressed('^') function.

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