This repository contains a homework assignment for practicing:
- Objects and arrays
- Functions
- Array methods
- TypeScript typing (interfaces, parameter types, return types)
ProductinterfaceStoreinterfacestoreobject with 5 productscartarray (product IDs)- 6 function stubs to implement
- Add types to all function parameters
- Add explicit return types to all functions
- Implement all 6 functions using the required methods
- Do not use:
- nested loops
- Make sure the file compiles with
tscwithout errors
- Work on a personal branch
- Submit using a Pull Request
- Only
store.tsshould be changed
Good luck!