Skip to main content
Skip table of contents

append Statement

Appends an object to an array.

Syntax

append anObject to anArray

Semantics

Appends an object to an array. The array does not necessarily have to be created beforehand (see Creating Arrays).

Substitutables

anArray

Can be any variable or object attribute having the type Array

anObject

Can be any object of the array type.

Examples

Input: an array of names

JSON
{"names": ["Irene", "Eliza", "Raymond", "Jane"]}
CODE
append "David" to names;

Result:

JSON
{"names": ["Irene", "Eliza", "Raymond", "Jane", "David"]}

Related Content

Related Pages:

  • Object References
    The Designer uses references for all objects. This page explains the concept and implications of object references.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.