Liz Anaya Ramos
·Developer Community Manager @ Xano

Challenge #29 - Add Item to End of Array

Objective: Create an array and add a new element to the end of it.

Instructions:

  1. Define the Array:

    • Create an array variable named numbers and assign it the initial values [1, 2, 3].

  2. Add an Item:

    • Using a filter, add the number 4 to the end of the array numbers.

  3. Submit the updated array contained in the variable numbers.

Expected Result:

Submit the variable numbers as your answer. See example below:


Install the snippet to get started: https://www.xano.com/snippet/XwN5GThx