const contains = (string, substring) => ... let string1 = "The blue dog eats." let string2 = "The red dog eats." let string3 = "The purple dog sleeps." let substring = "The * dog eats" // * is a catch all for any string contains(string1, substring) // true contains(string2, substring) // true contains(string3, substring) // false
How would I go about making a function like this?