Skip to content

Conversation

Norizinus
Copy link

Done

@Norizinus Norizinus changed the title Jason Franklin, Nora Nicklis - Berlin - W1D1 Lab [BET-FT] Jason Franklin, Nora Nicklis Jan 7, 2020
console.log(
`Wow, you both have equally long names, ${hacker2.length} characters!`
);
}

Choose a reason for hiding this comment

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

👍

let hacker1 = "Nora";
//console.log(`The driver's name is ${hacker1}`);
let hacker2 = "Jason";
//console.log(`The navigators's name is ${hacker2}`);

Choose a reason for hiding this comment

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

👍

upperCaseName += hacker1[i].toUpperCase() + " ";
}
console.log(upperCaseName);

Choose a reason for hiding this comment

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

👍

Choose a reason for hiding this comment

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

Looking below that you already understand how .split() and .join() works. What you can do here is simply

hacker1.split("").toUpperCase().join(" ")

.reverse()
.join("")
);

Choose a reason for hiding this comment

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

👍 Nice

// Iteration 3: Loops

if (hacker1 < hacker2) {

Choose a reason for hiding this comment

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

I would be careful to do this when you want to sort by lexicographical order because it does work for every case. Best is to use localeCompare()

@stale
Copy link

stale bot commented Feb 6, 2020

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 Feb 6, 2020
@stale
Copy link

stale bot commented Feb 8, 2020

This pull request is closed. Thank you.

@stale stale bot closed this Feb 8, 2020
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