PrepAway - Latest Free Exam Questions & Answers

Category: 70-480 (v.7)

Briefing 70-480: Programming in HTML5 with JavaScript and CSS3 (updated November 29th, 2017)

You need to ensure that the data validation requirement…

You are developing a customer contact form that will be displayed on a page of a company’s website. The page
collects information about the customer.
If a customer enters a value before submitting the form, it must be a valid email address.
You need to ensure that the data validation requirement is met.
What should you use?

Which expression should you insert into each function?

DRAG DROP
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 (for example, firstname@contoso.com)
A nine-digit number that allows optional hyphens after the second and fifth character in a function named
validateSSN(for example, 555555555 or 555-55-5555)
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 expression
statement 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.)
Select and Place:


Page 26 of 26« First...10...2223242526