Coder Social home page Coder Social logo

xmohammedawad / generatepassword Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 504 KB

- scrimba js challenge - from figma design and using JavaScript, I created a random password generator.

Home Page: https://muhmmadawd.github.io/generatePassword

HTML 29.11% JavaScript 35.70% CSS 35.19%
css figma html javascript

generatepassword's People

Contributors

xmohammedawad avatar

Watchers

 avatar

generatepassword's Issues

refactor the js code

Firstly, it looks like the array characters is commented out. Is this intentional? If not, you'll need to uncomment it to make use of it in the createRandomPasswords function.

Next, I noticed that the checkGeneratedPassWord function sets the disabled attribute on the generatePasswordEl element to false if the passwordOne length is greater than 10. This should actually be set to true to disable the button, as you don't want to generate a password if the first password is already longer than the allowed length.

I would also recommend setting a default value for the passwordOne and passwordTwo variables to prevent any errors that may occur if they are referenced before being assigned a value.

Lastly, it's good practice to wrap your code in a DOMContentLoaded event listener to ensure that the DOM has fully loaded before your JavaScript runs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.