return ends a function call and sends a result back to its caller.
function double(number) {
return number * 2;
}
const result = double(4);double(4) calculates and returns 8.const result = ... stores that returned value.Returning does not display the result. To display it, use console.log(result).
Complete makeTotal so it returns price * quantity. The existing call should
display Total: 36.