Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 month ago

Password generator with CSS and JS

P
JiaHe35354•190
@JiaHe35354
A solution to the Password generator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud of using JavaScript to dynamically generate a password based on the user's selected options (uppercase, lowercase, numbers, and symbols). Next time I will enforce the generated password to meet the user's selected requirements more reliably.

What challenges did you encounter, and how did you overcome them?

One of the main challenges I encountered was styling the range input element. It was tricky because different browsers apply different default styles, making it hard to create a consistent look.

To overcome this, I researched the issue and found an article that explained how to style range sliders using vendor-specific pseudo-elements like ::-webkit-slider-thumb and ::-moz-range-thumb. With that, I was able to apply custom styling across browsers successfully.

What specific areas of your project would you like help with?

I’d like help improving the password strength algorithm to make it more accurate and secure. Right now, it’s based on length and character types, but I’d like to learn how to make it smarter — for example, detecting common patterns or repeated characters.

I’d also like feedback on JavaScript best practices — especially around organizing code more cleanly and making it easier to maintain.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on JiaHe35354's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License