limit
inclusive were written out in words, how many letters would be used?
NOTE: Do not count spaces or hyphens. For example, 342 (three hundred and forty-two) contains 23 letters and 115 (one hundred and fifteen) contains 20 letters. The use of "and" when writing out numbers is in compliance with British usage.
numberLetterCounts(5)
should return 19.
testString: assert.strictEqual(numberLetterCounts(5), 19, 'numberLetterCounts(5)
should return 19.');
- text: numberLetterCounts(150)
should return 1903.
testString: assert.strictEqual(numberLetterCounts(150), 1903, 'numberLetterCounts(150)
should return 1903.');
- text: numberLetterCounts(1000)
should return 21124.
testString: assert.strictEqual(numberLetterCounts(1000), 21124, 'numberLetterCounts(1000)
should return 21124.');
```