Complete the 5 exercises by solving each problem and adding types to the parameters and returned value of each function.
- Clone the repository on your local machine.
- Run
npm install
to install the dependencies listen on thepackage.json
file. In this case, it will install TypeScript as a dev dependency. - The
tsconfig.json
file is already provided. When you runnpx tsc
on your terminal, this will compile all the TypeScript files located inside thesrc/
directory and output the JavaScript files to thedist/
directory. - Run
npx tsc --watch
to automatically compile whenever there are changes to your TypeScript files. - On another terminal, run
node dist/ex01.js
to test each JS file. You need to do this because Node cannot execute TypeScript files. - Commit and push once you are done.