Skip to content

[MAD PP] Luis Alberto Peña & Roberto Marrero - #691

Closed
LuisAPPDev wants to merge 1 commit into
ironhack-labs:masterfrom
LuisAPPDev:master
Closed

[MAD PP] Luis Alberto Peña & Roberto Marrero#691
LuisAPPDev wants to merge 1 commit into
ironhack-labs:masterfrom
LuisAPPDev:master

Conversation

@LuisAPPDev

Copy link
Copy Markdown

Terminado.

Entretenido y útil para coger soltura.

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

Copy link
Copy Markdown

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 thread js/index.js
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 No newline at end of file
} else {
console.log(`What?! You both have the same name?`);
} No newline at end of file

Copy link
Copy Markdown

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