Liz Anaya Ramos
ยทDeveloper Community Manager @ Xano

Challenge #34 - Value Collector

Objective: Extract the property values from an object and return them in an array.

  1. Define an Object:

    • Create an object named book with the following properties:

      • title with the value The Great Gatsby

      • author with the value F. Scott Fitzgerald

      • year with the value 1925

      • genre with the value Fiction

  2. Extract the Property Values:

    • Use a function to extract all the property values of the book object into an array.

      • Return this array as a variable named values_array.

  3. Submit your result contained in the variable values_array.

Expected Result:

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


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

1