- Notifications
You must be signed in to change notification settings - Fork5.8k
[MAD PP] Luis Alberto Peña & Roberto Marrero#691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ta-web-mad left a comment
There was a problem hiding this 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
js/index.js Outdated
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?`); | ||
} |
There was a problem hiding this comment.
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
Terminado.
Entretenido y útil para coger soltura.