I'm building an app to check the expiration dates of items. The functionality of the app works but I want to be able to check if a string includes a sub-string in order to run my function which is a countdown timer. I haven't included much of the code but it should be sufficient. Code is Bellow
var userInput = prompt("What item would you like to look up?");
switch (userInput) {
case userInput.includes("cous cous"):
//run a setInterval function