Tell us what’s happening:
Im perplexed, where does this answer miss the mark?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const renderSongs = userData?.songs;
// 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 26
Hi!
The instructions is asking you: Call the renderSongs function with the songs property of userData. This will render the songs in the playlist.
Where is the function call in above line of code?
You have declared the renderSongs
constant and assigned it userData?.songs
You mean like this?:
userData.Songs;
const renderSongs = userData?.songs;
ILM
4
no. We talked recently on how to call a function. You should maybe take notes.
Calling a function works the same every time
1 Like
No, it’s not. You aren’t calling the function renderSongs
.
Example of calling a function:
myFunc(passingValue);