Modo entrevista. Temporizador de 3 min, sin pistas y sin autocompletado
Spam check
FácilStrings3 min
Write a function checkSpam(text) that returns true if the string contains free money or xxx, and false if not. Letter case does not matter.
Ejemplos
checkSpam('Get FREE money now')Devuelve true
checkSpam('xXx files')Devuelve true
checkSpam('Release notes')Devuelve false
Cargando el editor…
- Entrada
checkSpam('Get FREE money now')Esperadotrue - Entrada
checkSpam('xXx files')Esperadotrue - Entrada
checkSpam('Release notes')Esperadofalse
Las pruebas ocultas se ejecutan al enviar