Skip to content

Conversation

@LuisAPPDev
Copy link

Terminado.

Entretenido y útil para coger soltura.

Copy link

@ta-web-mad ta-web-mad left a comment

Choose a reason for hiding this comment

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

Hola chicos,

El ejercicio está muy bien! Seguir asi!!
Os he dejado un pequeño comentario respecto al orden de nombres por si queréis echarle un ojo

Sandra

Comment on lines 49 to 60
if (hacker1[0] < hacker2[0]) {

console.log(`The Driver's name goes first.`);

} else if (hacker1[0] > hacker2[0]) {

console.log(`Yo, the navigator goes first definetely.`);

// Iteration 3: Loops
} else {
console.log(`What?! You both have the same name?`);
}

Choose a reason for hiding this comment

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

La solución que habéis encontrado está bien, pero pensar que si vuestros nombres empiezan por la misma letra no va a seguir comparando y daría el primero que encuentre.
Os animo a que os mireis en mdn el .localeCompare

@ta-web-mad ta-web-mad closed this Jan 17, 2020
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