Open lampa-da opened 6 years ago
I got it to pass with the following code:
function removeFromPlaylist(songTitle, artistName) { delete playlist.artistName return playlist }
I think the test is wrong...
It pass with
delete playlist[artistName] return playlist
`var meals = { breakfast: "oatmeal", lunch: "turkey sandwich", dinner: "steak and potatoes" };
// the
delete
operator returnstrue
if it has successfully // deleted,false
otherwise delete meals.dinner; // truemeals; // returns { breakfast: "oatmeal", lunch: "turkey sandwich" }`
this syntax dose not work in lab
delete playlist[artistName];