CIW
1D0-635 · Question #4
Which example correctly implements inline scripting with JavaScript?
The correct answer is C. <input type="button" value="Click Here!" onclick="alert('Hello World! '); " />. See the full explanation below for the reasoning.
Question
Which example correctly implements inline scripting with JavaScript?
Options
- A<input type="button" value="Click Here!" onclick=" " />
- B<input type="button" value="Click Here!" onclick="myGreeting();" />
- C<input type="button" value="Click Here!" onclick="alert('Hello World! '); " />
- D<input type="button" value="Click Here!" />
How the community answered
(34 responses)- A3% (1)
- B15% (5)
- C76% (26)
- D6% (2)
Community Discussion
No community discussion yet for this question.