From f731f47a9595dce529fb310366aa90f27e9f3091 Mon Sep 17 00:00:00 2001 From: reflective-foobar-0518 Date: Thu, 3 Jun 2021 21:06:15 +0000 Subject: [PATCH] Done. --- objects.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/objects.js b/objects.js index e69de29bb..9357e6410 100644 --- a/objects.js +++ b/objects.js @@ -0,0 +1,11 @@ +var playlist = new Object({keys: '0'}); + +function updatePlaylist(playlist, artistName, songTitle) { + playlist[artistName] = songTitle; + return playlist; +} + +function removeFromPlaylist(playlist, artistName) { + delete playlist[artistName]; + return playlist; +}