Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Compare levels of resolution in conflict outcomes?

Answered: 1 week ago

Question

Strategies for Managing Conflict Conflict Outcomes?

Answered: 1 week ago