Skip to content

ColmanDevClubORG/online-store-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

online-store-task

This repository contains a homework assignment for practicing:

  • Objects and arrays
  • Functions
  • Array methods
  • TypeScript typing (interfaces, parameter types, return types)

What is already in store.ts

  • Product interface
  • Store interface
  • store object with 5 products
  • cart array (product IDs)
  • 6 function stubs to implement

What you need to do

  • 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 tsc without errors

Submission

  • Work on a personal branch
  • Submit using a Pull Request
  • Only store.ts should be changed

Good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published