Skip to content

Web-Dev-FT-April2023 | Guglielmo Galasso #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Guglielmo123
Copy link

lab is done

Copy link

@joaopdg joaopdg left a comment

Choose a reason for hiding this comment

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

Great job on the lab Guglielmo, next time try to finish all the bonus!

for (let i=0; i<hacker1.length; i++){
variable += hacker1[i]+ " "
}
console.log(variable.toUpperCase())
Copy link

Choose a reason for hiding this comment

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

You should use the .toUpperCase() method inside the loop, otherwise you are not saving the string with the upper cased letters, you are just console logging it:

let hacker1Char = "";

for (let i = 0; i<hacker1.length; i++) {
    hacker1Char += hacker1[i].toUpperCase() + " ";
}

console.log(hacker1Char)

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