Microsoft
98-382 · Question #3
98-382 Question #3: Real Exam Question with Answer & Explanation
Sign in or unlock 98-382 to reveal the answer and full explanation for question #3. The question stem and answer options stay visible for context.
Question
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. The provided code structure is:
function unitTest(expression) {
{ // First block, needs a keyword
eval(expression);
}
(err) { // Second block, needs a keyword
alert("The function does not exist.");
}
}
Unlock 98-382 to see the answer
You've previewed enough free 98-382 questions. Unlock 98-382 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.