Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
