We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb0e1d commit e6f4850Copy full SHA for e6f4850
exercises/tiered_pricing/solutions/xetxeberria-ts/src/tieredPricing.ts
@@ -6,15 +6,10 @@ export function tieredPricing(licenseAmount: number): number {
6
7
function calculateLicensePrice(licenseAmount: number): number {
8
let licensePrice = 299;
9
- if (licenseAmount >= 3) {
10
- licensePrice = 239;
11
- }
12
- if (licenseAmount >= 11) {
13
- licensePrice = 219;
14
15
- if (licenseAmount >= 26) {
16
- licensePrice = 199;
17
+
+ if (licenseAmount >= 3) licensePrice = 239;
+ if (licenseAmount >= 11) licensePrice = 219;
+ if (licenseAmount >= 26) licensePrice = 199;
18
19
return licensePrice;
20
}
0 commit comments