Mini Linter Project: How to use .filter() to filter multiple items?

https://www.codecademy.com/courses/introduction-to-javascript/projects/mini-linter
This is my code:

let unnecessaryWords = ['extremely', 'literally', 'actually' ];
let storyWords = story.split(" ");
console.log(storyWords.length)
let betterWords = storyWords.filter(words=>{
    return words !== 'literally';
});

How can I filter out all the words that are not equal to any words in unnecessaryWords?

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