Want to pass your Introduction to Programming Using JavaScript 98-382 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
HOTSPOT
You are designing a web page that contains a blue button. When the button is pressed, it should call a function that displays the message elcome When the cursor hovers over the button, the button should turn red. When the cursor
leaves the button, the button should revert back to its original color of blue.
You want to complete the markup using the appropriate HTML events.
How should you complete the markup? To answer, select the appropriate event in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

DRAG DROP
You are creating a web page that requests a username.
You create the following HTML form:

You need to write a function that retrieves the username from the form.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each function may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view
content.
NOTE: Each correct selection is worth one point.
Select and Place:

You are writing a JavaScript program for Contoso Suites that will output HTML.
You need to output each room type on a new line using the correct method.
You create the following code for the function. Line numbers are included for reference only.

You need to insert the correct code at Line 9. Which line should you use?
A. document.getElementById("body").innerHTML = rooms[i] + line.innerHTML;
B. document.getElementById("para").innerHTML += rooms[i] + line.innerHTML;
C. document.getElementById("para").innerHTML += i + rooms + line.innerHTML;
D. document.getElementById("body").innerHTML += rooms + i;