unction _one(pwd) Create a JavaScript function that meets the following requirements:
Hello I needed some with with this JavaScript problem please
function _one(pwd)
Create a JavaScript function that meets the following requirements:
• Is passed a string representing a potential password
• The function determines if the password meets the following requirements
o The length of the password is between 8 – 12 characters
o Contains at least 1 number (numeric character)
o Contains at least 1 special character
▪ Special characters are punctuation characters that are present on standard keyboard namely any character encapsulated within the following double quotes
“(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)”
o Contains at least 1 capital letter
• The function should NOT employ the use of regular expressions to solve the problem
• The function also displays the result (console log) of its password validation as illustrated below.
• The function returns a Boolean back to the caller indicating valid or not.
Step by step
Solved in 2 steps with 1 images