diff --git a/objects.js b/objects.js index e69de29bb..842cec08f 100644 --- a/objects.js +++ b/objects.js @@ -0,0 +1,16 @@ +var playlist = { + Future: 'Lights', + Cent: 'In da club', + Elvis: 'shookup' +} + +function updatePlaylist(playlist, artistName, songTitle) { + playlist[artistName] = songTitle + return playlist +} + +function removeFromPlaylist(playlist, artistName) { + delete playlist[artistName] + + return playlist +}