Skip to content

Paris - Yang - #363

Closed
yangyangzouzou wants to merge 2 commits into
ironhack-labs:masterfrom
yangyangzouzou:master
Closed

Paris - Yang #363
yangyangzouzou wants to merge 2 commits into
ironhack-labs:masterfrom
yangyangzouzou:master

Conversation

@yangyangzouzou

Copy link
Copy Markdown

No description provided.

} else if (hecker1.charAt(0) < hecker2.charAt(0)) {
console.log("Yo, the navigator goes first definitely")
} else {
console.log("What?! You both got the same name?")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

c'est bien d'avoir pensé a charAt, c'est une bonne methode mais je t'invite a regarder la methode localCompare() qui correspond mieux a l'exercice ;)


//loops

var DriversNames = '';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Attention ! En JavaScript on utilise le camelCase, ce qui veut dire que lorsque tu declare une variable la premiere lettre est toujours une minuscule, puis si il ya un second mot et plus il y aura une majuscule: driversName. Ca n'empeche pas le code de fonctionner mais c'est une bonne habitude a prendre !


var DriversNames = '';
for (i=0; i<hecker1.length; i++) {
DriversNames += hecker1[i].toUpperCase

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Attention ! Si tu utilises la methode toUpperCase() n'oublie pas les parentheses ! Sinon ERROR

@ta-web-paris

Copy link
Copy Markdown

C'est bien ! Continue comme ca ;)

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