After completing this assignment, you should be able to:
- Demonstrate understanding of types, functions, argument-handling, loops, and conditional statements
Instructions
- Fork this repository to your own account.
- Change into today's directory:
take ~/tiy/week-3/day-1
- Clone your repository:
hub clone function-junction
- Change into your project's directory:
cd function-junction
- Install the dependencies:
yarn
ornpm install
- Open in Atom:
atom .
- Start test runner:
yarn test
ornpm test
- Open
src/functions.test.js
and work on functions until tests pass. - Commit and push your work to github.
- All tests passing
- No linter warnings
- Turn in the homework using the URL to your repository on Github.
- If you used "built-in" JavaScript methods like
String.reverse()
orArray.max()
to solve these problems, try implementing them from scratch. - Vice-versa: if you implemented your solutions from scratch, look in the documentation linked below to see if JavaScript has any built-in functions to help solve these problems.
Reference the documentation on MDN to find what kind of helpful functions might already be on Array
and String
in JavaScript.