Essential JavaScript

Taboo Words Kata

Given an array of input words (words) and an array of taboo words (taboo), return an array of all words in words that don't appear in taboo.

const words = ['I', 'am', 'testing', 'you'];
const taboo = ['testing'];
const result = removeTabooWords(words, taboo);
console.log(result); // ["I", "am", "you"]

Code Editor