Tell us what’s happening:
Reading the instructions, this solution is what I perceive the question asks, why isn’t it so, would love your explanations
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const playSong = (id) => {
const song = userData?.songs.find(song);
};
// 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/131.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 36
Please check how the find method work.
you are not using it correctly.
And would you know where this was first used in the lessons
Hi there!
I didn’t know that, but you can check the link below for understanding the find()
method.
Link:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Hey friend! I just got throught this one! You want to use a function in the .find method that strictly checks if song.id is === to id! Good luck! Took me a sec too!
2 Likes
Thank you for your contribution. felt it in the heart.