Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Array.Shift()

Cambiar al Manual

Descripción

Unshift adds one or more elements to the beginning of an array and returns the new length of the array.

var arr = new Array ("Hello", "World");
arr.Unshift("This", "is");
// Prints This, is, Hello, World
print(arr);