0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Use a Returned Value

A function call that returns a number can be used inside another calculation.

Your task

Call getBasePrice(), add the booking fee of 5, and store the result in finalPrice. Display exactly:

Final price: 25

Hint

A function call can be part of a larger expression.