[solved] Mini Linter Exercise - Step 5


#1

For the practice mentioned, I were highlighted error with the code to count the number of sentences.

Below is my code. Can someone advice what is wrong with this code pls? (link to full code https://gist.github.com/2ce1c0de61f80b862766b6dfe1df0f3e )

let sentenceCounting = 0;

storyWords.forEach (word => if (word === ‘.’ || word === ‘!’) {sentenceCounting+= 1};
);


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.