nerdexam
Microsoft

98-382 · Question #28

98-382 Question #28: Real Exam Question with Answer & Explanation

Sign in or unlock 98-382 to reveal the answer and full explanation for question #28. The question stem and answer options stay visible for context.

Question

The ABC company offers a mid-week discount of 10% on Wednesdays. You need to write a JavaScript function that meets the following requirements: -> Accepts the day of the week as a string -> Returns the appropriate discount You create the following code. Line numbers are included for reference only.
01 function getDiscount(day) {
02 var discount = 0;
03
04
05 discount = .1;
06 break;
07
08 discount = 0;
09 break;
10 }
11 return discount;
12 }
You must complete the code at lines 03, 04, and 07. 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.

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.

Full 98-382 Practice