Skip to content

[BCN-PT-102022] Alex Garrido Baldrich #2378

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Garin90
Copy link

@Garin90 Garin90 commented Nov 16, 2022

  • I made the "loops" exercise using "for" loop, and I learned yesterday that I should haver used "while".

Copy link

@EdgarHiSo EdgarHiSo left a comment

Choose a reason for hiding this comment

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

Buen lab en general Alex, sigue así, intenta que la identación vaya mejorando, y recuerda darle espacios a los símbolos, y demás para que sea más legible, pero buen trabajo!!

console.log(hacker2Reverse);


const alphabet="abcdefghijklmnopqrstuvwxyz";

Choose a reason for hiding this comment

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

En este caso te has complicado demasiado, con la función locale.compare() nos permite saber que letra va en orden alfabético.
`
let lexic = hacker1.localeCompare(hacker2)
console.log(lexic)

if (lexic === -1) {
console.log(The driver's name goes first.)
}
else if (lexic === 1) {
console.log(Yo, the navigator goes first definitely.)
}
else {console.log(What?! You both have the same name?)}
`

@stale
Copy link

stale bot commented Jan 7, 2023

This pull request has been automatically marked as stale because it didn't have any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants