Confused on whats wrong here


#1

Hello all, i am not really sure whats wrong with my code here. The lesson asks me to call the function 3 times with different arguments for topping and crustType. Any help would be awesome thanks!

function takeOrder(topping, crustType) {
console.log("Order: pizza topped with" + topping + crustType)
}
takeOrder("bacon, thin")
takeOrder("pepporni, thick")
takeOrder("Sasuage, thin")




#2

you are only actually sending 1 argument because you have the whole thing wrapped in quotes instead of 2 quoted words. takeOrder(“bacon, thin”) should be takeOrder(“bacon”, “thin”)


#3

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