Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Array.Push()

Description

Adds value to the end of the array.

And returns the new length of the array.

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

Note: This is javascript only. C# does not use this feature.