
Design comparison
Solution retrospective
I'm mostly proud of finishing this project in short time period it`s was something around 5-6 hours.
What specific areas of your project would you like help with?I saw that sometimes generated password is shorter than value but in console its looks good and I dont know how to overcome this issue
Community feedback
- P@markuslewinPosted 3 months ago
Hi!
I think it's because the password can contain symbols, and since
.innerHTML
is used to inject the password into the DOM, the browser tries to parse the password as HTML. The generated password'<p>Hi</p>'
would only displayHi
, for example..textContent
would work better here!your_password.textContent = password;
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord