Skip to content

[MIA] -RANDY ARBOLAEZ - #107

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

[MIA] -RANDY ARBOLAEZ#107
randyarbolaez wants to merge 1 commit into
ironhack-labs:masterfrom
randyarbolaez:master

Conversation

@randyarbolaez

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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