Creating an Array: Difference between revisions
Content added Content deleted
Line 5: | Line 5: | ||
=={{header|ActionScript}}== |
=={{header|ActionScript}}== |
||
<actionscript> |
|||
// ActionScript arrays are zero-based |
|||
// |
|||
// creates an empty array |
|||
var arr1:Array = new Array(); |
|||
// creates an array with 3 numerical values |
|||
var arr2:Array = new Array(1,2,3); |
|||
// |
|||
// or just use the shorthand |
|||
⚫ | |||
var u:Array = []; |
|||
⚫ | |||
</actionscript> |
|||
=={{header|Ada}}== |
=={{header|Ada}}== |