Return the price
A caller needs the value a helper calculates.
your task
Make bookingPrice return the total booking price to its caller. Keep the function name and both parameters.
bookingPrice multiplies the hourly price by the hours booked. When the caller prints the result, it gets undefined.
Run code runs your code once for each case. It compares what your code prints with the expected output.
Starter code
or press Ctrl EnterNot run yet
cases
Not run yet3 hours at 40
Expected output
1
120See the input and the code for this case
console.log(bookingPrice(40, 3));
Not run yet2 hours at 12.5
Expected output
1
25See the input and the code for this case
console.log(bookingPrice(12.5, 2));