Build a Shopping List - Step 5

Tell us what’s happening:

Everything is Correct but wont move on to the next step

Your code so far

console.log("Grocery shopping list");

const shoppingList = [];


// User Editable Region

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

shoppingList.push("Apples");

function getShoppingListMsg(arr) {
  return `Current Shopping List: ${arr.join(", ")}`;
}

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/144.0.0.0 Safari/537.36 Edg/144.0.0.0

Challenge Information:

Build a Shopping List - Step 5

Is it possible that there’s maybe too many characters in the list? I do agree that the hint given really does make you think you’ve already completed the challenge.

it’s telling you to concatenate the array, not to use any methods, are you maybe using some methods here?

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