-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
base: master
Are you sure you want to change the base?
Solution #4841
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можна додатково винести days * RENT_A_DAY
в окрему змінну для зручності та щоб уникнути повторень в даному коді :)
There was a problem hiding this comment.
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
There was a problem hiding this 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; |
There was a problem hiding this comment.
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
No description provided.