1
exercism fetch ecmascript two-fer

Two Fer

Create a sentence of the form "One for X, one for me."

Two-fer or 2-fer is short for two for one. One for you and one for me.

1
"One for X, one for me."

When X is a name or "you".

If the given name is "Alice", the result should be "One for Alice, one for me." If no name is given, the result should be "One for you, one for me."

Setup

Go through the setup instructions for ECMAScript to install the necessary dependencies:

http://exercism.io/languages/ecmascript/installation

Requirements

Install assignment dependencies:

1
$ npm install

Making the test suite pass

Execute the tests with:

1
$ npm test

In the test suites all tests but the first have been skipped.

Once you get a test passing, you can enable the next one by changing xtest to test.

Source

This is an exercise to introduce users to basic programming constructs, just after Hello World. https://en.wikipedia.org/wiki/Two-fer

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.