Can items be added to beginning of an array?


#1

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

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

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Can we add items to the beginning positions of an array?

<do not remove the three backticks above>

#2

you can use unshift(), it will add the parameter to the front of the array. exampleArray.unshift(“front”)


#3

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