Skip to main content

Classifying Creatures

A Learning TypeScript > Classes 🥗 appetizer project.

G'day, mate! I'm here with the veterinarian center and a wonderful selection of great pets! We've got a parrot, some gerbils and hamsters - and wow, a whole litter of puppies! Crikey!

Thing is, we're just a tad bit overloaded with all the animals here. We've got to get a system to categorize them. Can you please help us classify our creatures?


If you haven't yet, set up the repository locally.

git clone learning-typescript-projects
cd learning-typescript-projects
npm i

Change your terminal directory to this project's:

cd projects/classes/classifying-creatures

In one terminal, start the TypeScript compiler in watch mode:

tsc --watch

In another terminal, run Jest on whichever step you're working on. For example, to run tests for the first step in watch mode:

npm test -- 1 --watch



  • Don't import code from one step into another.