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 #4841

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

Solution #4841

wants to merge 1 commit into from

Conversation

nataliia2211
Copy link

No description provided.

Copy link

@taniabarkovskya taniabarkovskya left a comment

Choose a reason for hiding this comment

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

Good job! You can be proud of yourself 🌺

const RENT_A_DAY = 40;

if (days < SHORT_TERM) {
return days * RENT_A_DAY;

Choose a reason for hiding this comment

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

можна додатково винести days * RENT_A_DAY в окрему змінну для зручності та щоб уникнути повторень в даному коді :)

Choose a reason for hiding this comment

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

можна додатково винести days * RENT_A_DAY в окрему змінну для зручності та щоб уникнути повторень в даному коді :)

Good point

Copy link

@BudnikOleksii BudnikOleksii left a comment

Choose a reason for hiding this comment

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

Good work 👍
Approved, but check the comment

const RENT_A_DAY = 40;

if (days < SHORT_TERM) {
return days * RENT_A_DAY;

Choose a reason for hiding this comment

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

можна додатково винести days * RENT_A_DAY в окрему змінну для зручності та щоб уникнути повторень в даному коді :)

Good point

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.

3 participants