Solución
solution.tsTypeScript
function countWordsByLength(sentence: string, length: number): number {
// Tu código aquí
return sentence.split(" ").filter(p => p.length === length).length;
}
// No modificar: necesario para evaluar el resultado.
export { countWordsByLength };0respuestas