-
Notifications
You must be signed in to change notification settings - Fork 4k
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 #3340
Solution #3340
Conversation
} | ||
const pricePerDay = 40; | ||
|
||
if (days >= 7) { |
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.
Please, don't use numbers in conditions, create variables.
For example:
const LONG_TERM = 7;
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.
Please, check comments
// write code here | ||
} | ||
const pricePerDay = 40; | ||
|
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.
Create a const standartPrice = days * pricePerDay;
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.
I couldnt reopen this pull request. I am sending a link to a new one with my fixes => #3369
I couldnt reopen this pull request. I am sending a link to a new one with my fixes => #3369 |
No description provided.