From 155b262838bef89b69049f053d7705cd7d246ac4 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Sat, 20 Mar 2021 22:02:44 +0000 Subject: [PATCH] Done. --- objects.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/objects.js b/objects.js index e69de29bb..f414bfb54 100644 --- a/objects.js +++ b/objects.js @@ -0,0 +1,8 @@ +var playlist = {artistName: "songTitle"}; +function updatePlaylist(playlist, artistName, songTitle){ +playlist[artistName] = songTitle; +} +function removeFromPlaylist(playlist, artistName){ +delete playlist[artistName] +return playlist +}