Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Password Generator with React and Redux

react, redux, pwa
Abel Muro•1,920
@AbelMuro
A solution to the Password generator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


The most challenging part of this project was styling the input[type=range]. I had to make sure that the styles that I implemented were consistent across all browsers.

According to the design, I had to make sure that one side of the input was green and the other side was dark grey. This proved to be more difficult and time consuming than I anticipated.

As for generating a random password, I used a very simple algorithm that use the Math.random() on a long string that contains all the uppercase, lowercase, numbers, and symbol characters.

let myLongString = 'all characters goes here'; let random = Math.floor(Math.random() * myLongString.length) myLongString[random];

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 Abel Muro'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
  • Use cases

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