Question 16
Kirken needs to write a script to construct custom objects that store user account information such as a username. password and e-mail address for a Web site. What should he add to the following code to set these properties?

A)

B)

C)

D)


A)

B)

C)

D)

Question 17
Jaime needs to write a script to remove all the non-digit characters from a phone number so that all that remains are the numbers She knows that she will need to use a regular expression to search for non-digit characters and can use a method to remove all the non-digit characters. Which code should she use?
A)

B)

C)

D)

A)

B)

C)

D)

Question 18
Ashton need to write out the items in any array as a list, with their array index number followed by their value. Which block of code will accomplish this?
A)

B)

C)

D)

A)

B)

C)

D)

Question 19
The same origin policy was introduced at the same time as HTML5 to limit location changes in browser windows that are using frames. Given this policy which of the following would be a valid new location of a frame on the Web site http //www.ClWCertified corn?
A)

B)

C)

D)

A)

B)

C)

D)

Question 20
Consider the following code:

The JavaScript function above will display the following:

The JavaScript function above will display the following: