Now on Omarchy: read the manual without leaving your desktop
Your code JavaScript
// Write matchCatFood(str): "cat" if immediately followed by " food"
// (without " food" in the result), or null.
function matchCatFood(str) {

}

// Write hasDigitSomewhere(str): true if str contains a digit anywhere.
function hasDigitSomewhere(str) {

}