Which expression should you insert into each function?

You are validating user input by using JavaScript and regular expressions.
A group of predefined regular expressions will validate two input fields:
An email address in a function named validateEmail
A nine-digit number that allows optional hyphens after the second and fifth character in a function
named validateSSN
You need to use the correct expression to validate the input.
Which expression should you insert into each function?
(To answer, drag the appropriate regular expressionstatement to the correct location. Each regular expression
statement may be used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.)

You are validating user input by using JavaScript and regular expressions.
A group of predefined regular expressions will validate two input fields:
An email address in a function named validateEmail
A nine-digit number that allows optional hyphens after the second and fifth character in a function
named validateSSN
You need to use the correct expression to validate the input.
Which expression should you insert into each function?
(To answer, drag the appropriate regular expressionstatement to the correct location. Each regular expression
statement may be used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.)

Answer:

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *