98-382 Exam QuestionsBrowse all questions from this exam

98-382 Exam - Question 24


HOTSPOT -

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.

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.

Hot Area:

Show Answer
Correct Answer:

References: https://www.w3schools.com/jsref/jsref_switch.asp

Discussion

1 comment
Sign in to comment
kisskeo
Oct 28, 2021

Answer - Correct