JavaScript
// Write hasDigit(str): true if str contains any digit.
function hasDigit(str) {

}

// Write hasVowel(str): true if str contains any of a, e, i, o, u.
function hasVowel(str) {

}