On the last line of your program, after the takeOrder function calls, call the getSubTotal function inside a console.log statement.

getSubTotal has a parameter that represents the amount of items ordered. Pass in the orderCount as an argument when making the function call.
var orderCount = 0;
function takeOrder(orderCount = orderCount + 1 ){
console.log(getSubTotal * orderCount);

function getSubTotal(itemCount){
return itemCount * 7.5;


function takeOrder(orderCount = orderCount + 1 )

You have to put itemCount as parameter not orderCount.
orderCount = orderCount + 1 should be inside the function block!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.