Skip to content

PAR Ghaith & Marie - #151

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

PAR Ghaith & Marie#151
marieglr wants to merge 1 commit into
ironhack-labs:masterfrom
marieglr:master

Conversation

@marieglr

Copy link
Copy Markdown

console.log("The dirver's name is " + hacker1);

var hacker2 = "Ghaith";
console.log("The navigator's name is " + hacker2);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can "generate" a dynamic name by asking the user :

var hacker2 = prompt("What's your name ? ")

var navigatorSize = hacker2.length;

if (driverSize > navigatorSize){
console.log("the navigator's name has the longest name, it has " + driverSize + " characters.");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

small typo error here :

the driver's has the longest name, otherwise it will be the navigator everytime ;)

@ta-web-paris

Copy link
Copy Markdown

Good job! except for some small mistake I mention you did a great job, as it's just the beginning you could have wrote less "complex" stuff for the last iteration per example but otherwise 🥇

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