Array 'unshift' method in Javascript (Array.prototype.unshift)

preview_player
Показать описание
Similar to the 'push' method, the 'unshift' method is used to add a new element to the very beginning of the Array, rather than the back as with 'push'. It also returns the new length of the array after the addition operation.

In this video see it in action.

For your reference:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Unshift()agrega un elemento a la lista.Gracias...

rodrigoaraya