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:
HOTSPOT
You are planning to use the Math object in a JavaScript application. You write the following code to evaluate various Math functions:
What are the final values for the three variables? To answer, select the appropriate values in the answer area. NOTE: Each correct selection is worth one point.
Hot Area:
HOTSPOT
You are creating JavaScript code that manipulates dates. You want to initialize a Date object with the date January 1, 2017 by using the year, month, and date parameters.
How should you complete the code? To answer, select the appropriate code segment in the answer area.
Hot Area:
HOTSPOT
You are using JavaScript to create a function that calculates admission price.
The function must meet the following requirements: The function accepts the age of the customer as a parameter A customer who is less than 5 years old gets in free A customer who is 65 years old or older gets in free A customer who is 5 years old to 17 years old, pays $10 USD All other customers pay $20 USD
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
HOTSPOT
You are creating a calendar application. You need to ensure that the code works correctly for all months of the year.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
HOTSPOT
You are evaluating a colleague's code to ensure it meets best practices.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
DRAG DROP
Your instructor has asked you to implement code that would display a two-dimensional array of any size inside a
You write the following code:
You need to complete the code.
Which three segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.
Select and Place:
DRAG DROP
You are developing a web page that uses JavaScript. The script needs to display information to the user using a popup box.
Match each function that displays a popup box with its appropriate scenario.
To answer, drag the appropriate function from the column on the left to its appropriate scenario on the right. Each function may be used once, more than once, or not at all.
NOTE: Each correct selection is worth one point.
Select and Place: