- Clone your forked repo into your local machine
cd
into the repo- Create a development branch separate from master via
git checkout -b dev
- Set up compiler configuration file tsconfig.json via
tsc --init
- Enter command
npm install --save @types/node
to be able to use ES6 types in your function - Code your algorithm for the given specifications in problem-a.ts
- Test your changes by compiling the .ts file via
tsc ./exercise/problem-a.ts
ortsc --watch ./exercise/problem-a.ts
to auto-recompile on file save - Run the script via
node ./exercise/problem-a.js
and check if your code passes the given tests - If your code passes the tests,
add
,commit
, andpush
your code todev
. - Create a pull request to merge your commits from
dev
intomaster
in your repository, rather than the repo you forked from. - Submit the link to your pull request on Canvas under Lab 1 Exercise