Build a Shopping List - Step 5

Tell us what’s happening:

what am I doing wrong? I’ve read all the forum entries and I’m even more confused

Your code so far

console.log("Grocery shopping list");

const shoppingList = [];

console.log("It will be nice to have some fruit to eat.");

 shoppingList.push("Apples");


// User Editable Region

function getShoppingListMsg(shoppingList) {
 return "Current Shopping List:" + shoppingList
 } 


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Shopping List - Step 5

Welcome to the forum @hamiterlydia13

Your getShoppingListMsg function should accept an array and return the message "Current Shopping List: " followed by the contents of that array. Double check spacing and spelling errors.

Your return statement is missing a single space after the colon.

Happy coding