Skip to content

Conversation

@Tomeryac
Copy link
Owner

No description provided.

playsong function
removesong function
function addSong
removeplaylist
createPlaylist
playPlaylist
function editPlaylist
function playlistDuration
playlistDuration
searchByQuery
searchByDuration
],
playSong(song) {
console.log(/* your code here */)
console.log("Playing "+player.songs[song].title+" from "+player.songs[song].album+" by "+player.songs[song].artist+" | "+songDuration(player.songs[song].duration)+".");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use string template and move player.songs[song] to a variable

}
function playSong(id) {
// your code here
let num=songById(id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not const?

// your code here
}

let idR = songById(id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants