Log on console

hi guys, can anyone help me out, im doing this exercise and im stuck here :

  • Create a method called shuffle for the CD class. The method returns a randomly sorted array of all the songs in the songs property.*

I dont know how to call that and log on console (i also dont know if the code is good, i find it on google)

Thanks

class CD extends Media{
constructor(title,songs,year){
super(title);
this._songs=;
this._year=year;
}
get songs(){
return this.songs;
}
get year(){
return this._year;
}
shuffle(songs) {
for (var i = songs.length - 1; i > 0; i–) {
var j = Math.floor(Math.random() * (i + 1));
var temp = songs[i];
songs[i] = songs[j];
songs[j] = temp;
}
}

}

const postMalone =new CD(‘Post Malone’,‘circles’,2019);
const Maroon =new CD(‘Maroon’,‘memories’,2019);
const eminem =new CD(‘eminem’,‘stan’,2000);
const rihanna =new CD(‘rihanna’,‘diamonds’,2015);