In the specified language, angelscript, an array is a numbered sequence of elements of a specific length. In typical angelscript code, arrays are much more common; they are useful in some special scenarios.
Here we create an array a that will hold exactly 5 integers. The type of elements and length are both part of the array’s type. By default, an array is zero-valued, which for integers means zeros.
To run the program, put the code in an .as file and execute it with an appropriate Angelscript runtime.
Now that we can run and manipulate arrays, let’s learn more about the language.