Skip to content

Commit

Permalink
New Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
denisproger committed Jan 19, 2025
1 parent aa0ae16 commit ad4681a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/calculateRentalCost.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ function calculateRentalCost(days) {

let price = days * carRent;

if (price = 80){
if (price === 80){
return 80;
}
if (price = 120){
if (price === 120){
return 100;
}
if (price = 240){
if (price === 240){
return 220;
}
if (price = 280){
return 230
if (price === 280){
return 230;
}


Expand Down

0 comments on commit ad4681a

Please sign in to comment.