Liz Anaya Ramos
 · Developer Community Manager @ Xano

Challenge #28 - Count Items in Array

Objective: Create an array and count the number of items it contains.

Instructions:

  1. Define the Array:

    • Create an array variable named item_list and assign it the values [5, 10, 15, 20, 25].

  2. Count the Items:

    • Create a new variable named item_count and use a filter to calculate the number of items in item_list.

  3. Submit your result contained in the variable item_count.

Expected Result:

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


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