Course Solutions Uncategorized (Solved) : M Creating Password Generator N Length User Deciedes Length Inputting Number M Trouble Val Q28594637 . . . .

(Solved) : M Creating Password Generator N Length User Deciedes Length Inputting Number M Trouble Val Q28594637 . . . .

 

I’m creating a password generator of n length. The user deciedesthe length by inputting a number. I’m having trouble with how tovalidate that ‘num’ is between the values of 6-25 also If thenumber entered by the user is valid, I want to use a for loop thatiterates that number of times. In each iteration of the loop,randomly select one of the characters from the chars string andconcatenate it to the password variable.

Here is my HTML

<!DOCTYPE html>

<html>

<head>

<meta charset=”UTF-8″>

<title>pgen</title>

<link rel=”stylesheet” href=”password.css”>

<scriptsrc=”https://code.jquery.com/jquery-3.1.1.min.js”></script>

</head>

<body>

<h1>Generate a Strong Password</h1>

<label for=”num”>Number of characters:</label>

<input type=”text” id=”num”><br>

  

<label for=”password”>Password:</label>

<input type=”text” id=”password” disabled><br>

  

<label>&nbsp;</label>

<input type=”button” id=”generate” value=”GetPassword”>

<input type=”button” id=”clear”value=”Clear”><br>

  

<script src=”password.js”></script>

</body>

</html>

JAVASCRIPT/ JQUERY

“use strict”;

$(document).ready(function() {

var

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post