Learn Basic Algorithmic Thinking by Building a Number Sorter - Step 7

Tell us what’s happening:

hello everyone
what is thr wrong here? i can not know

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const sortInputArray = (event) => {
  event.preventDefault();
   map(dropdown => Number(dropdown.value)); 
  const inputValues = [...document.getElementsByClassName("values-dropdown")];
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Learn Basic Algorithmic Thinking by Building a Number Sorter - Step 7

Hi. This is the map function you are looking for.

yes
the program tell me that Use the map function to iterate over the array. Pass a callback function to map that takes a dropdown parameter and returns dropdown.value .

As the map function is defined on the Array class, you can only call it from an array instance.