Tell us what’s happening:
I used the following function but when i test the code it tells me that it shoould return a string. whats the issue here? tried concation, template literals all the same problem.
const getShoppingListMsg = function(arr = ) {
return Current Shopping List: ${arr};
};
Your code so far
// User Editable Region
const getShoppingListMsg = function(arr = []) {
return `Current Shopping List: ${arr}`;
};
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:144.0) Gecko/20100101 Firefox/144.0
Challenge Information:
Build a Shopping List - Step 5
https://www.freecodecamp.org/learn/full-stack-developer/workshop-shopping-list/step-5