| Exam Code/Number: | 98-382Join the discussion |
| Exam Name: | Introduction to Programming Using JavaScript |
| Certification: | Microsoft |
| Question Number: | 40 |
| Publish Date: | Dec 01, 2026 |
|
Rating
100%
|
|
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.


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.


HOTSPOT
You are creating a function named countdown. The function accepts a single parameter, start, and displays a countdown from that number down to zero in increments of one.
How should you complete the code? To answer, select the appropriate code segments in the answer area.


You are creating a web page that allows customers to choose how hot their spice is. If they choose spicy, a warning should be displayed.
You create the following form. Line numbers are included for reference only.
You create the following JavaScript code to display the warning.
When you choose spicy and click Order, the warning fails to display.
You need to solve this problem.
What should you do?
You are writing a function that calculates the remainder for integer division. The function receives two parameters, a and b, and must return the remainder that is left over when the integer a is divided by the integer b.
You create the following code. Line numbers are for reference only.
You want to complete the function for lines 02 and 03.
Which two sets of code segments should you use? Each correct answer presents a complete solution. (Choose two.)