Learn Basic String and Array Methods by Building a Music Player - Step 29

Tell us what’s happening:

what is been asked to do can’t understand and i’m passing empty callback function still not working

Your code so far

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

/* file: styles.css */

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

  userData?.songs.sort(a,b)=()=>{};
  

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

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 29

Take a look at the given example:

fruits.sort((a, b) => { ... });

The callback function should be empty.

1 Like

Thanks for the reply . I figured it out after 5 mins of posting the problem. :smiley:

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.