Skip to content

Conversation

kaalaska
Copy link

No description provided.

@kaalaska kaalaska changed the title ing-karin-dirk first iteration ing-karin-dirk solution Nov 18, 2019
console.log(`The driver has the longest name, it has ${lenHacker1} characters.`);
}else if(lenHacker1<lenHacker2){
console.log(`It seems that the navigator has the longest name, it has ${lenHacker2} characters.`);
}else{

Choose a reason for hiding this comment

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

prefer explicit condition like " === "


// Iteration 3: Loops
let upperHacker1=hacker1[0];

Choose a reason for hiding this comment

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

ERROR: Wrong assumption that hacker1[0] is already uppercase

// Iteration 3: Loops
let upperHacker1=hacker1[0];
for(let i=1;i<lenHacker1;i++){

Choose a reason for hiding this comment

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

ERROR: Loop should start at i = 0. See above

}else if(hacker1>hacker2){
console.log(`Yo, the navigator goes first definitely`);
}else{

Choose a reason for hiding this comment

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

prefer explicit condition like " === "

*/

if(hacker1<hacker2){

Choose a reason for hiding this comment

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

prefer localeCompare() as per example in the lesson material

Copy link

@MarcoSantonastasi MarcoSantonastasi left a comment

Choose a reason for hiding this comment

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

Good.
Iteration 3: should use localeComapre()
Up till iteration 3

@stale
Copy link

stale bot commented Dec 19, 2019

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 Dec 19, 2019
@stale
Copy link

stale bot commented Dec 21, 2019

This pull request is closed. Thank you.

@stale stale bot closed this Dec 21, 2019
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy