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

makeRobot Task #2368

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

konradwasilewski444
Copy link

all tests ok

Comment on lines 14 to 16
const first = Number(num1);

const second = Number(num2);
Copy link

Choose a reason for hiding this comment

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

these are not needed

Comment on lines 22 to 26
} else {
const result = first + second;

return result;
}
Copy link

Choose a reason for hiding this comment

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

you don't need to use else when using return already

if (counter % 2 === 0 && counter > 3) {
return 'Bzzz... Error!';
} else {
const result = first + second;
Copy link

Choose a reason for hiding this comment

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

this variables is redundant

Comment on lines 14 to 16
const first = num1;

const second = num2;

Choose a reason for hiding this comment

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

you don't need these variables just use num1 and num2 :)

Copy link

@asakevych asakevych 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! 🚀 🔥

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.

4 participants