Skip to content

Comments

solution230226#6385

Open
valerij0412 wants to merge 1 commit intomate-academy:masterfrom
valerij0412:develop
Open

solution230226#6385
valerij0412 wants to merge 1 commit intomate-academy:masterfrom
valerij0412:develop

Conversation

@valerij0412
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Great job on this task! Your solution correctly implements all the logic for calculating the rental cost and passes all the checks. The code is clean, well-structured, and easy to follow. I am approving your submission.

As a minor point of feedback for future improvements, there are a couple of typos in your constant names (LONG_TERM_DISCONT and SHORT_TERM_DISCONT). Correcting these would improve the code's clarity, in line with the goal of using descriptive names [CHECKLIST ITEM #1].


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

// write code here
const PRICE_PER_DAY = 40;
const LONG_TERM = 7;
const LONG_TERM_DISCONT = 50;

Choose a reason for hiding this comment

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

This violates checklist item #1: 'Make names descriptive...'. There appears to be a typo in DISCONT. For better readability, consider renaming it to DISCOUNT.

const LONG_TERM = 7;
const LONG_TERM_DISCONT = 50;
const SHORT_TERM = 3;
const SHORT_TERM_DISCONT = 20;

Choose a reason for hiding this comment

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

This violates checklist item #1: 'Make names descriptive...'. Similar to the variable above, this name has a typo. It would be more descriptive as SHORT_TERM_DISCOUNT.

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