Mini Linter Project: How to use .filter() to filter multiple items?
This is my code:

let unnecessaryWords = ['extremely', 'literally', 'actually' ];
let storyWords = story.split(" ");
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.