Https://www.codecademy.com/courses/learn-how-to-code/lessons/bop-functions/exercises/all-together

function makeSandwich(topping1, topping2) {

sandwich = ‘bread’ + topping1 + topping2 + ‘bread’

return sandwich

}

why doesn’t this method work?
Is it necessary to use + ‘,’

Hello @dev0213799491, welcome to the forums! Do you mean it throws an error, or it doesn’t allow you past the exercise, because you aren’t returning what CC wants?

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