Liz Anaya Ramos
·Developer Community Manager @ Xano

Challenge #30 - Add Item to Beginning of Array

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

Instructions:

  1. Define the Array:

    • Create an array variable named colors and assign it the initial values ['blue', 'green', 'yellow'].

  2. Add an Item:

    • Add the color red at the beginning of the array colors.

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

Expected Result:

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


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