Return II


#1

https://www.codecademy.com/courses/learn-javascript/lessons/functions/exercises/return-ii

var orderCount=0
function takeOrder(topping, crustType){
console.log(crustType + ' Order: pizza topped with '+ topping);
orderCount=orderCount + 1;
}

function getSubTotal(itemCount){
return itemCount * 7.5;
}
takeOrder('pepperoni','thick');
takeOrder('peppers','thin');
takeOrder('Bacon','medium');
console.log(getSubTotal(orderCount));

function getTax() {

}


#2

What problem/error this code returning you ?


#3

It's working now for some reason


#4

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