Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
it was very fun thank you for making my holiday :)