From 05d0c5e6c4c5a559f49b8cba5ca629afe648579e Mon Sep 17 00:00:00 2001 From: Myles Starr Date: Wed, 24 Mar 2021 18:11:54 +0000 Subject: [PATCH] Done. --- objects.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/objects.js b/objects.js index e69de29bb..11d9853bc 100644 --- a/objects.js +++ b/objects.js @@ -0,0 +1,11 @@ +var playlist = { "BIG": "Notorious Thugs" } + +function updatePlaylist(playlist, artistName, songTitle) { + playlist[artistName] = songTitle + return playlist +} + +function removeFromPlaylist(playlist, artistName) { + delete playlist[artistName] + return playlist +}