/99bottles_js

99 Bottles of OOP examples in JavaScript

Primary LanguageJavaScript

99bottles_js

99 Bottles of OOP examples in JavaScript

Instructions

  1. Clone this repository:
git clone git@github.com:asalisbury/99bottles_js.git
  1. Install dependencies:
yarn install
  1. Run the test suite:
yarn test --watch
  1. Remove .skip from the first test that has it.
  2. Make the test pass.
  3. Repeat steps 4 and 5 until all of the tests are green.

Tips:

function numberRange(upper, lower) {
  return Array.from(Array(1 + upper - lower), (_, i) => i + lower).reverse();
}
// ✨ JavaScript ✨