Skip to content

bot-rogerthat/spacify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript OOP Practice

Purpose

This practice touches the following:

  1. Basics of prototype based inheritance.
  2. ES6 features.
  3. BDD with Mocha and Chai.
  4. NPM infrastructure.

Spacify

Overview

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() // ""

Steps

  1. Fork this repository.
  2. Checkout forked repository.
  3. Install Node.js.
  4. Install project dependencies by npm install.
  5. Run tests by npm run test (tests should fail).
  6. Go to the src folder and implement spacify module.
  7. Check your progress against specification (tests).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%