Hacker Hero Challenges

Objectives

  • To be able to apply the TDD concept
  • To struggle on writing tests first, before writing a single code.
  • To be comfortable with Chai's expect method
  • To be comfortable in using the mocha command.

Pick any 5 challenges at Hacker Hero: Basic Algorithm course.  This time, you would solve it using JavaScript but do it using TDD approach.  Remember to create test cases first and make sure test cases don’t pass first.  Then write the function.  For each challenge, create a separate file containing the test cases.  Then demonstrate how you c...

Please submit your assignment before moving to the next lesson. chevron_left Prev Nextchevron_right