Question: Complete the isStrongPassword ( ) function that has a single password parameter. The function should return true only if all the following conditions are true:
Complete the isStrongPassword function 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
index.js is calling isStrongPassword with the arguments above for testing purposes. Call isStrongPassword with other arguments to
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
