Labour Day Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Scarlet has the following code in her script:

Var namesArr =[‘’Joseph’,’ Charlotte’’, ‘’Nicole’’];

She wants to add the name Hank to the end of the array so that its length is 4. What code should she use?

A.

namesArr [4] ''Hank'';

B.

namesArr push (''Hank'');

C.

namesArr unshift (''Hank'');

D.

namesArr .shift (''Hank'');

Full Access
Question # 5

Juan is testing his JavaScript application, which includes the following code:

Assuming Juan enters August for his birth month and his name for first name, what is the value of birthMonth after executing this code?

A.

August

B.

Juan was born in August

C.

Juan was born in August

D.

What month were you born? What is your first name?

Full Access
Question # 6

Consider the following code:

The processform() function is not executed when the submit button is pressed. What change should be made to correct this?

A.

The onsubmit event handler should be added to the tag.

B.

The onsubmit event handler should be added to the

tag.

C.

The onfocus event handler should be added to the tag.

D.

The onfocus event handler should be added to the tag

Full Access
Question # 7

What basis code is needed to define the JavaScript function avgGrades?

A.

Function avgGrades () {}

B.

avgGrades function ()

C.

avgGrades (){ }

D.

var = function avgGrades () {}

Full Access
Question # 8

Consider the following code:

What code would you use to determine if the check box has been checked or not?

A.

Document.form[0].termsService.selected

B.

Document.form[0].termsService.validityState

C.

Document.form[0].termsService.checked

D.

Document .form[0].termsService.value

Full Access