Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DOCTYPE html html head Title Final title script function final ( ) { Question No . 6 ( 1 0 pts ) : Write a
DOCTYPE html
html
head
Title Final title
script
function final
Question Nopts : Write a statement to get the input from the user and assign it to a "let" type variable called 'userInput'
var lowerCaseLetter azg; regular expression az
var upperCaseLetter AZg; regular expression AZ
var number g; regular expression
var a;
Question Nopts :
Given that "userInput.matchregular expression is the function to check if the userInput match the regular expression or not and its return value is null when not matching.
Given that "userInput.length" is the length of the user input.
Write ifelse" statements to check if the user input meet each requirement or not.
You can use integer array a to store the comparison results, so the sum of the comparison results can be used as a unique number to reflect if the user input met the requirements or not.
Question Nopts : Use the result of Question No as the value of case to in "switchcase" statement to output the appropriate error when the user input meet or does not meet one or more requirements
script
head
body
form
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started