Mini Linter: overusedWords

The text in the task list mentions that there are two ways of handling this and my method, below, isn’t either of those methods. Is there anything wrong with my method? Is it equally valid?

// set count to zero, iterate through the array storyWords, if the second array overusedWords includes word in storyWords array increase the count by 1
let countOverusedWords = 0
for (let i = 0; i < storyWords.length; i++) {
  if (overusedWords.includes(storyWords[i])) {


Does it work? If yes, then you are good to go :wink:

1 Like