Solución
solution.tsTypeScript
export function countSpaces(text: string): number {
// Escribe tu solución aquí
const spacesMatch = text.match(/\s/g)
return spacesMatch ? spacesMatch.length : 0 ;
}0respuestas
export function countSpaces(text: string): number {
// Escribe tu solución aquí
const spacesMatch = text.match(/\s/g)
return spacesMatch ? spacesMatch.length : 0 ;
}Aún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.