Password generator with CSS and JS

Solution retrospective
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.
Please log in to post a comment
Log in with GitHubCommunity 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