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

Math Magicians: Events #3

Merged
merged 9 commits into from Apr 29, 2022
Merged

Math Magicians: Events #3

merged 9 commits into from Apr 29, 2022

Conversation

amrendrakind
Copy link
Owner

Events

  • Copy the files calculate.js and operate.js into a logic/ directory in your project.
  • Analyze the files calculate.js and operate.js, be sure you understand what they do (note: you need to add big.js as dependency).
  • Import the files in your Calculator component.
  • Implement the event handlers you need to use the math logic from calculate.js and operate.js in your React component.
  • Use state and props, pass props to child components, use lifecycle methods, lift state up.
  • Test your app in the browser. It should be able to perform math operations.

Copy link

@mahbubul14 mahbubul14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @amrendrakind ,

Good job so far! 👍
There are some issues that you still need to work on to go to the next project but you are almost there!

Required Changes ♻️

  • Please check the inline comments under the review. ⬇️

To Highlights

✔️ No linter errors.
✔️ Good README.
✔️ Descriptive PR title & description.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification. You can also reach me on slack

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Comment on lines 22 to 28
if (operation === '%') {
try {
return (one.times(two).div(100)).toString();
} catch (err) {
return "Can't find modulo as can't divide by 0.";
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The % button should work as a modulus, not as a percentage. If I calculate 17 %(mod) 5 the output should be 2 but currently, it shows .85. Kindly fix the issue.

  • The arithmetic operators ('+', '-', '/' etc.) of your calculator are working but it is not showing on the display. Whenever you click on any arithmetic operators, It should be displayed on the calculator display.

Copy link

@uwadonat uwadonat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @amrendrakind,

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
cong

Status: Approved ✔️✔️✔️

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@amrendrakind amrendrakind merged commit 3e1c1ea into dev Apr 29, 2022
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.

None yet

3 participants