79743917

Date: 2025-08-22 23:20:04
Score: 0.5
Natty:
Report link
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
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: abdulkareem alabi