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:
https://developer.mozilla.org/en-US/d...
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
En esta página del sitio puede ver el video en línea Array 'unshift' method in Javascript (Array.prototype.unshift) de Duración hora minuto segunda en buena calidad , que subió el usuario dcode 24 diciembre 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,342 veces y le gustó 31 a los espectadores. Disfruta viendo!