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

Tell us what’s happening:

Hi, I can’t pass the step 11.
Step 11
You need a function to update the display with the sorted numbers. Start by using arrow syntax to declare an updateUI function that takes a single array parameter.

Because you will be writing algorithms that won’t immediately have a return value, set a fallback value for array to be an empty array.

This is my code:
const updateUI = (arr = ) => {}

Your code so far

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

/* file: styles.css */

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

const updateUI = (arr = []) => {}

// 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/127.0.0.0 Safari/537.36

Challenge Information:

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

Check the hint. It is telling you the correct parameter name it is expecting (it is not arr)

oh, thank you! :grinning: :grinning: :grinning: :grinning:

1 Like