Hi guys,
I have been very stuck on the above task, which is to remove every other word (contained in the array ‘overusedWords’) from the main passage ‘betterWords’, a long array of words making up a story.
let overusedWords = [‘really’, ‘very’, ‘basically’];
Focusing just on the word ‘really’, here is what I have come up with, with no success so far.
for (let word of betterWords) {
if (word === ‘really’ && word % 2 !== 0) {
betterWords.splice(word, 1)
}
}
Any advice welcome, thank you