Skip to content

Conversation

randyarbolaez
Copy link

No description provided.

@randyarbolaez randyarbolaez changed the title FTW MIAMI -RANDY ARBOLAEZ [MIA] -RANDY ARBOLAEZ Apr 2, 2018
// Lorem ipsum generator
for (x = 0; x < hacker1.length; x++){
displayString = displayString + hacker1[x].toUpperCase()
+ " ";
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be done by: displayString = hacker1[x].toUpperCase() + " ";
although much cleaner solution would be using these JS methods:

for (var i = 0; i < 1; i++) {
  console.log(
    hacker1
      .split("")
      .join(" ")
      .toUpperCase()
  );
}


for (x = hacker2.length -1 ;x >= 0;x--){
backwardString = backwardString + hacker2[x] ;

Copy link
Contributor

Choose a reason for hiding this comment

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

The same as above, this could work, but the better solution is:

for (var i = 0; i < 1; i++) {
  console.log(
    hacker1
      .split("")
      .reverse(" ")
      .join("")
  );
}

@sandrabosk
Copy link
Contributor

Good job Randy! If you have time, try working on the bonus stuff. Thank you for submitting.

@sandrabosk sandrabosk closed this Apr 3, 2018
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
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