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

solution #1816

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

solution #1816

wants to merge 1 commit into from

Conversation

mshmigelska
Copy link

No description provided.

Copy link

@loralevitska loralevitska left a comment

Choose a reason for hiding this comment

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

Well done)

Comment on lines +49 to +71
add(number) {
this.result += number;

return this;
},

subtract(number) {
this.result -= number;

return this;
},

divide(number) {
this.result /= number;

return this;
},

multiply(number) {
this.result *= number;

return this;
},

Choose a reason for hiding this comment

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

Could be simplify

Suggested change
add(number) {
this.result += number;
return this;
},
subtract(number) {
this.result -= number;
return this;
},
divide(number) {
this.result /= number;
return this;
},
multiply(number) {
this.result *= number;
return this;
},
add(number) {
this.result += number;
},
subtract(number) {
this.result -= number;
},
divide(number) {
this.result /= number;
},
multiply(number) {
this.result *= number;
},

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