7. More Array Methods - Unshift()


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

Perhaps I'm making a silly mistake but I can't seem to progress.

<Below this line, add a link to the EXACT exercise that you are stuck at.>
7. More Array Methods

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Error Message: Make sure you implement .unshift() and console.log() on two different lines

```

let groceryList = [‘orange juice’, ‘bananas’, ‘coffee beans’, ‘brown rice’, ‘pasta’, ‘coconut oil’, ‘plantains’];
groceryList.shift();

groceryList.unshift(‘Popcorn’);

console.log(groceryList);

<do not remove the three backticks above>

#2

Check that against the instructions. For best results, do not take license over provided content or instructions. Use it explicitly as given.


#3

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