Help with 4/7


#1


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


Whenever I run the code, it gives me the error code "Did you call the takeOrder function with two strings within its parentheses, separated by commas?".

The first two instructions get accepted, but the third one doesn't.

This is the code I used:


function takeOrder(topping , crustType) {
  console.log('Order: '+  crustType + ' crust pizza topped with ' + topping);
}

takeOrder('please' , 'help');
takeOrder('this' , 'stuff');
takeOrder('is' , 'confusing');


#2

Ok nvm. I removed the spaces between the strings when I was calling the function, and the code worked.


#3

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