98-382 Exam QuestionsBrowse all questions from this exam

98-382 Exam - Question 23


HOTSPOT -

You are using JavaScript to create a function that calculates admission price.

The function must meet the following requirements:

✑ The function accepts the age of the customer as a parameter

✑ A customer who is less than 5 years old gets in free

✑ A customer who is 65 years old or older gets in free

✑ A customer who is 5 years old to 17 years old, pays $10 USD

✑ All other customers pay $20 USD

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_operators.asp

Discussion

1 comment
Sign in to comment
kisskeo
Oct 28, 2021

Answer - Correct