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

Tell us what’s happening:

Hi I have completed this assignment , I just want to ask one thing I’m facing from previous assignment
const playlistSongs = document.getElementById(“playlist-songs”)
this is the first line of the code , when I console playlistSongs why do I get only { } as a output why whole element is not consoled out.

thanks

Your code so far

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

/* file: styles.css */

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




// 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 99

check the browser console, you can see the element there

No I am only seeing curly brackets i.e {} . I am checking this from past2/3 assignments .

what console are you looking at? the browser console is not the one in the freecodecamp editor

The console which is provided in feecodecamp website next to preview tab

open the browser console and look there, the editor console is not fully functional, it can’t represent an HTMLNode

1 Like

Hi It would be great if you guide me to how we can use DEVTOOLS to console the output of playButton in line number 2 in the code , because i’m trying it but it is not happening , as I am new to this world so guidance is much appreciated

write console.log(playlistSongs) then open the browser console, it will be there logged:

1 Like

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