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 8 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():
isStrongPassword("Qwerty"); // false - Too short
isStrongPassword("passwordQwerty")// false - Contains "password"
isStrongPassword("qwerty123")// false - No uppercase characters
isStrongPassword("Qwerty123")// true
To test your code in your web browser, call isStrongPassword() from the JavaScript console.6.16 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 8 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 ():
isStrongPassword("Qwerty"); // false - Too short
isstrongPassword("passwordQwerty")// false - Contains "password"
isstrongPassword("qwerty123")// false - No uppercase characters
isstrongPassword("Qwerty123")// true
To test your code in your web browser, call isStrongPassword () from the JavaScript console.
547760.3981304.q3zqy7
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
 Download the ZIP file below containing HTML and JavaScript files. Write

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!