最新的Microsoft Introduction to Programming Using JavaScript - 98-382免費考試真題

HOTSPOT
You are designing a function that allows you to perform unit tests on other functions in a library. You will invoke each library function by using the eval JavaScript function. If an exception occurs when invoking a function, you want to display a message box with the following message:
The function does not exist.
How should you complete the code? To answer, select the appropriate code segment in the answer area.
NOTE: Each correct selection is worth one point.
正確答案:

Explanation:

References: https://www.w3schools.com/jsref/jsref_try_catch.asp
You are creating a JavaScript program for an accounting system.
You create the following code. Line numbers are included for reference only.

You evaluate the code to ensure that it follows JavaScript best practices.
Which line should you change?

正確答案: A
DRAG DROP
You are creating a web page with a script. The script will insert the window's location inside the page's input element.
How should you complete the code? To answer, drag the appropriate code segment to the correct locations. Each code segment 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.
正確答案:

Explanation:

Box 1: document
Box 2: getElementById
Box 3: window
Box 4: location
References: https://www.w3schools.com/js/js_window_location.asp
HOTSPOT
You evaluate the following code:

You need to determine the values of sampleStudent, sampleCourse.name, and sampleCourse.grade that are output by console.log().
What are the final values for the three variables? To answer, select the appropriate values in the answer area.
正確答案:

Explanation:

References: https://www.w3schools.com/js/js_output.asp

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어