Skip to content

Conversation

@shacharmalka1
Copy link

it was very fun thank you for making my holiday :)

isIdExist is checking if some id is exist in the array of songs.
removeSongs is removeing the id from the array songs and playlist
the function is remove the playlist with the id argument
function duratinFormat is present the duration according to the format
return the max id
newId is return the max id+1
addSong is pushing to the array songs
pushing to the array playlist
used with the function playSong
checking if id is existing in songs and in playlist
if id is existing but not in the songs array so added the id to the songs array
function oppositDuration is changes the duration from the format to seconds
change the push to the array
Returns the total duration of the entire playlist with the given ID.
…tPlaylist

function findPlaylistId find the playlist with the id that she is get
function removeSongsFromPlaylist remove the song only from the playlist
editPlaylist is working
…Duration

arrLengthmPlaylist return array with the minimum range and the object
same for arrLengthSongs
searchByDuration return the object with the minimum range from the playlist and songs
results create array with array of songs and playlist
and return this array
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.

1 participant