1.3 KiB
1.3 KiB
title | id | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
Comma quibbling | 596e414344c3b2872167f0fe | 5 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(typeof quibble === "function", "<code>quibble</code> is a function.");'
- text: ''
testString: 'assert(typeof quibble(["ABC"]) === "string", "<code>quibble(["ABC"])</code> should return a string.");'
- text: ''
testString: 'assert.equal(quibble(testCases[0]), results[0], "<code>quibble([])</code> should return "{}".");'
- text: ''
testString: 'assert.equal(quibble(testCases[1]), results[1], "<code>quibble(["ABC"])</code> should return "{ABC}".");'
- text: ''
testString: 'assert.equal(quibble(testCases[2]), results[2], "<code>quibble(["ABC", "DEF"])</code> should return "{ABC and DEF}".");'
- text: ''
testString: 'assert.equal(quibble(testCases[3]), results[3], "<code>quibble(["ABC", "DEF", "G", "H"])</code> should return "{ABC,DEF,G and H}".");'
Challenge Seed
function quibble (words) {
// Good luck!
return true;
}
After Test
console.info('after the test');
Solution
// solution required