nerdexam
CIW

1D0-635 · Question #40

Consider the following code: What is the appropriate parameter for the alert() method in line 5 to reference the text in the firstName text box?

The correct answer is B. document.myForm.firstName.value. See the full explanation below for the reasoning.

Question

Consider the following code:

What is the appropriate parameter for the alert() method in line 5 to reference the text in the firstName text box?

Exhibit

1D0-635 question #40 exhibit

Options

  • Adocument.myForm.value(firstName)
  • Bdocument.myForm.firstName.value
  • Cwindow.myForm.firstName.value
  • Dwindow.myForm.text(firstName)

How the community answered

(36 responses)
  • A
    17% (6)
  • B
    72% (26)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-635 Practice