After completing this assignment, you should be able to:
- Demonstrate understanding of types, functions, argument-handling, loops, and conditional statements
- Fork this repository to your own account.
- Change into your projects directory:
- Clone your repository:
git clone function-junction
- Change into your project's directory:
cd function-junction
- Install the dependencies:
yarn install
(or justyarn
for short) - Open in your editor]
- Start the test runner:
yarn test
- Open
src/functions.test.js
and work on functions until tests pass. - Commit and push your work to GitHub.
- Turn in the URL to your GitHub repo.
- All tests passing
- No linter warnings
- Turn in the homework using the URL to your repository on Github.
- CAUTION One of the tests is broken. Your job is to update the test to pass.
- 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.