JavaScript
// Write hasCat(str): true if str contains "cat" anywhere.
function hasCat(str) {

}