Type a Price Calculator
Add TypeScript parameter and return annotations to a price calculator so strict compilation succeeds while preserving the calculated total.
TypeScript
Challenge overview
- Format
- Build a Function
- Category
- TypeScript
- Difficulty
- Beginner
typescriptfunctionstype-annotationsnumbersreturn-types
Keep practicing
More coding challenges
JavaScript · Beginner
Update the Guest List
Update a JavaScript guest list by replacing one array item through its index, then print the corrected list without adding another guest.
View challengePython · Beginner
Update the Guest List in Python
Update a Python list item in place through its index, then print the corrected guest list without adding or removing any names.
View challengeJavaScript · Beginner
Update the Scoreboard
Update an existing JavaScript scoreboard object by changing its score, adding a winner status, and printing the completed object.
View challenge

