Tell us what’s happening:
I have tried to update the variable to what was requested I obviously didn’t do it properly and am wondering what I missed in the step if it could be clarified or hinted at would be great. The instructions were to update the sortedValues variable by assigning it the result of calling .sort() on the inputValues array.
const sortedValues = insertionSort(inputValues);
inputValues.sort() = sortedValues ;
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const sortedValues = insertionSort(inputValues);
inputValues.sort() = sortedValues ;
updateUI(sortedValues);
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Challenge Information:
Learn Basic Algorithmic Thinking by Building a Number Sorter - Step 38