Can`t pass this step


#1

Here is my code as in instructions but it doesn`t allow to me go to next step

const takeOrder = (topping, crustType) => {
console.log('Order: ’ + crustType + ’ pizza topped with ’ + topping);
};

takeOrder(‘mushrooms’, ‘thin crust’);
takeOrder (‘bacon’, ‘flatbread crust’);
takeOrder (‘salami’,‘thick crust’);

the instructions are:

Below the takeOrder() function, call the function three times and pass in different arguments each time for topping and crustType.


#2

after furiosly hitting Run button it gave me a new button "Solution’ I pressed it and it changed my code to this

const takeOrder = (topping, crustType) => {
console.log('Order: ’ + crustType + ’ pizza topped with ’ + topping);
};

takeOrder(‘mushroom’, ‘thin crust’);
takeOrder(‘spinach’, ‘whole wheat’);
takeOrder(‘pepperoni’, ‘brooklyn style’);

Now it allows me to pass but what is the difference? I don`t see any


#3

I fixed the quotation marks on both the function and the call and that fixed it for me.
the backtick one > ` < is used for template literals, not expressions, there is a difference, you can check out the mozilla docs; for more information.


#4

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