function isAllX(string) { //pass the function argument to the variable str const str = string for(let i = 0; i < str.length; i++){ if (str[i] !== 'x' && str[i] !== 'X' ) { return false } } return true }