Skip to content

Conversation

cristinahernandez
Copy link

Sorry for the delayed :( pero pasa todos los specs del test (menos bonus) fingers crossed para que no hayan muchos fallos...

return a;
} else if (b > a) {
return b;
} else if (b === a) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si llega a este punto es que son iguales, con un simple else te vale.

}
return longestWord;
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De aquí para abajo no se ejecuta, con el if else ya tienes todos los casos cubiertos.

return true;
}

for (k = 0; k <= wordArray.length; k++) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto no se controla así, se produce un error al intentar acceder a una posición que no existe. Tiene que ser así:
for (let k = 0; k < wordArray.length; k++) {

"disobedience",
"matter"
];
function howManyTimes(arrayToCount, wordToCount) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esta función no funciona.

@JdeJ
Copy link

JdeJ commented Jun 11, 2019

Hola Cristina, cuando puedas tenemos que hablar.

@JdeJ JdeJ closed this Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants