Tell us what’s happening:
I tried this problem, but I couldn’t solve it. So please solve it
Your code so far
// User Editable Region
console.log("Grocery shopping list");
const shoppingList = [];
console.log("It will be nice to have some fruit to eat.");
shoppingList.push("Apples");
shoppingList.push("Grapes");
function getShoppingListMsg(arr) {
return "Current Shopping List: " + arr;
}
console.log(getShoppingListMsg(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 7