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

Tell us what’s happening:

I’m having problems with this exercise, I don’t quite understand what to do.

Your code so far

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

/* file: styles.css */

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

const sortInputArray = (event) => {
  event.preventDefault();

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

// User Editable Region

Your browser information:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Challenge Information:

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

That looks pretty good, at a guess I think you should just return dropdown.value and not use Number

Thank you so much. That was it, it was a little easier than I thought. :sweat_smile: