# newArray

## Description

Creates an empty array.

## Input / Parameter

| Name | Description                | Input Type  | Default | Options | Required |
| ---- | -------------------------- | ----------- | ------- | ------- | -------- |
| var  | The name of the new array. | String/Text | -       | -       | Yes      |

## Output

| Description                  | Output Type |
| ---------------------------- | ----------- |
| Returns the new empty array. | Array/List  |

## Callback

N/A

## Video

Coming Soon.

## Example

The user wants to create a new array.

### Step

1. Call the function"newArray" and set the variable name.\
   var: listOfFruits<br>

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-fd6b689ba20091abb5171aa091cd22b234fa5624%2FnewArray-step-1.png?alt=media)

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-1127c20b4b8194c57afaf7dc59caa0c98b4686cc%2FnewArray-step-2.png?alt=media)
2. Add a console and call the function "getVar"

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-960c5be749705af94d9851e69771e9ed8557569b%2FnewArray-step-3.png?alt=media)

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-e6ca553367dc6b897a42e4de7e268f7fd15dfc03%2FnewArray-step-4.png?alt=media)

### Result

User create a new array successfully.<br>

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b346a0c3c5eff783f00f4ded40595ebcb1f90970%2FnewArray-result-1.png?alt=media)

## Links
