Skip to content

Commit e5fe554

Browse files
committed
delete explicit return types exercise
1 parent 3d00d4d commit e5fe554

23 files changed

Lines changed: 28 additions & 263 deletions

File tree

exercises/05.functions/02.problem.parameters-and-returns/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
// 🐨 Create a function `calculateTax` that:
55
// - Takes `amount` (number) and `rate` (number)
66
// - Returns the tax amount (amount * rate)
7-
// 💰 function calculateTax(amount: number, rate: number): number
87

98
// 🐨 Create a function `formatPrice` that:
109
// - Takes `cents` (number)
1110
// - Returns a formatted dollar string like "$19.99"
12-
// 💰 return `$${(cents / 100).toFixed(2)}`
1311

1412
// 🐨 Create a function `applyDiscount` that:
1513
// - Takes `price` (number) and `discountPercent` (number)
1614
// - Returns the discounted price
17-
// 💰 return price - (price * discountPercent / 100)
1815

1916
// ✅ Test your functions
2017
// console.log(calculateTax(100, 0.08)) // 8

exercises/05.functions/05.problem.arrow-functions/README.mdx renamed to exercises/05.functions/04.problem.arrow-functions/README.mdx

File renamed without changes.

exercises/05.functions/05.problem.arrow-functions/index.ts renamed to exercises/05.functions/04.problem.arrow-functions/index.ts

File renamed without changes.

exercises/05.functions/05.problem.arrow-functions/package.json renamed to exercises/05.functions/04.problem.arrow-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "exercises_05.functions_05.problem.arrow-functions",
2+
"name": "exercises_05.functions_04.problem.arrow-functions",
33
"type": "module",
44
"scripts": {
55
"start": "npx @kentcdodds/log-module@latest ./index.ts",

exercises/05.functions/04.problem.explicit-return-types/README.mdx

Lines changed: 0 additions & 32 deletions
This file was deleted.

exercises/05.functions/04.problem.explicit-return-types/index.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

exercises/05.functions/04.problem.explicit-return-types/package.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

exercises/05.functions/05.solution.arrow-functions/README.mdx renamed to exercises/05.functions/04.solution.arrow-functions/README.mdx

File renamed without changes.

exercises/05.functions/05.solution.arrow-functions/index.test.ts renamed to exercises/05.functions/04.solution.arrow-functions/index.test.ts

File renamed without changes.

exercises/05.functions/05.solution.arrow-functions/index.ts renamed to exercises/05.functions/04.solution.arrow-functions/index.ts

File renamed without changes.

0 commit comments

Comments
 (0)