diff --git a/curriculum/challenges/english/25-front-end-development/workshop-sentence-analyzer/66e2f06b191e305c00574e4d.md b/curriculum/challenges/english/25-front-end-development/workshop-sentence-analyzer/66e2f06b191e305c00574e4d.md index c2904ade972..c875c4c45ad 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-sentence-analyzer/66e2f06b191e305c00574e4d.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-sentence-analyzer/66e2f06b191e305c00574e4d.md @@ -54,7 +54,13 @@ Your `getWordCount` function should return the correct word count for any senten assert.strictEqual(getWordCount("freeCodeCamp has a great community of kind people"), 8); assert.strictEqual(getWordCount("The freeCodeCamp curriculum is constantly updated"), 6); assert.strictEqual(getWordCount("freeCodeCamp teaches both frontend and backend development"), 7); +``` + +Your `getWordCount` function should return the correct word count for an empty string, or a string only with spaces. + +```js assert.strictEqual(getWordCount(""), 0); +assert.strictEqual(getWordCount(" "), 0); ``` # --seed--