Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Download the ZIP file below containing HTML and JavaScript files. Write a function called isStrongPassword ( ) in script.js that has a single password parameter.
Download the ZIP file below containing HTML and JavaScript files. Write a function called isStrongPassword in script.js that has a single password parameter. The function should return true only if all the following conditions are true:
The password is at least characters long.
The password does not contain the string "password".
The password contains at least one uppercase character.
If any of the above conditions are false, isStrongPassword should return false.
Below are example calls to isStrongPassword:
isStrongPasswordQwerty; false Too short
isStrongPasswordpasswordQwerty false Contains "password"
isStrongPasswordqwerty false No uppercase characters
isStrongPasswordQwerty true
To test your code in your web browser, call isStrongPassword from the JavaScript console LAB: JavaScript password strength
Download the ZIP file below containing HTML and JavaScript files. Write a function called isstrongPassword in script.js that
has a single password parameter. The function should return true only if all the following conditions are true:
The password is at least characters long.
The password does not contain the string "password".
The password contains at least one uppercase character.
If any of the above conditions are false, isstrongPassword should return false.
Below are example calls to isstrongPassword :
isStrongPasswordQwerty; false Too short
isstrongPasswordpasswordQwerty false Contains "password"
isstrongPasswordqwerty false No uppercase characters
isstrongPasswordQwerty true
To test your code in your web browser, call isStrongPassword from the JavaScript console.
LAB
Submission Instructions
Downloadable files
and
Download
Upload your files below by dragging and dropping into the area or choosing a file on your hard drive.
script.js
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started