/* QUOTE: I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their skin but by the content of their character. */ let meow = "I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their skin but by the content of their character." // Function getFrequency takes as parameters two strings, text and token. // This function needs to return the number of times a token accurs in text // For example, if this function is tested with above quote and token is // "will", then this function should return 2 becuase "will" occurs twice in // the text function getFrequency(text, token) { let count = 0; let words = text.split(" "); // Changed from text.split("") for (let i=0; i s.length > 0); const lowercaseWords = words.map(w => w.toLowerCase()); const lowerCaseWord = word.toLowerCase(); if (lowercaseWords.includes(lowerCaseWord)) { return word.split("").join(","); } else { return "Word not found"; } } console.log(spellWord(meow, "children")) // write code to test your functions