This practice touches the following:
- Basics of prototype based inheritance.
- ES6 features.
- BDD with Mocha and Chai.
- NPM infrastructure.
Spacify module should implement spacify function and define it inside native String class. This function should compute string with space injected between each char of the original string. Brief specification:
- "ABC".spacify() // "A B C"
- "A".spacify() // "A"
- "".spacify() // ""
- Fork this repository.
- Checkout forked repository.
- Install Node.js.
- Install project dependencies by
npm install
. - Run tests by
npm run test
(tests should fail). - Go to the src folder and implement spacify module.
- Check your progress against specification (tests).