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

Task solution #2392

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

Conversation

MateuszCieplak
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on implementing the makeRobotAccountant function! 🎉 The logic is mostly correct, and it meets the task requirements. Just ensure that the condition for returning an error message aligns with the task specifications. Keep up the good work and happy coding! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +11 to +12
const result = function getSum(a) {
return function(b) {

Choose a reason for hiding this comment

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

The getSum function is defined to take one parameter a, but it returns another function that takes b. This is a valid approach for currying, but ensure that this is the intended behavior.

Comment on lines +17 to +18
if (count > 3 && number === 0) {
return 'Bzzz... Error!';

Choose a reason for hiding this comment

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

The condition count > 3 && number === 0 is used to return an error message. Ensure that this logic aligns with the task requirements. If the task specifies a different condition for returning an error, adjust this logic accordingly.

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.

2 participants