nerdexam
CIW

1D0-635 · Question #31

Consider the following code: What is the expected result of this script?

The correct answer is A. When you leave the page, the alert box will display. See the full explanation below for the reasoning.

Question

Consider the following code:

What is the expected result of this script?

Exhibit

1D0-635 question #31 exhibit

Options

  • AWhen you leave the page, the alert box will display.
  • BThe page will ignore the function, so a blank page will display on entry and exit.
  • CWhen you enter the page, you will be warned that there is unfinished JavaScript to run.
  • DWhen you leave the page, there will be a JavaScript error because you cannot unload an alert

How the community answered

(36 responses)
  • A
    75% (27)
  • B
    14% (5)
  • C
    3% (1)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full 1D0-635 Practice