I’ve been trying to pass this step but I’m not certain where I could’ve went wrong when setting userData?.currentSong to null. I tried using the strict equality operator(===) and the loose equality operator(==) since I get an error in the console when using the assignment operator but I still get the same message.
I just tried the using the assignment operator but I’m still getting the error from the console.
//this is the error I get from the console when using the assignment operator//
SyntaxError: unknown: Support for the experimental syntax 'optionalChainingAssign' isn't currently enabled (148:3):
146 | const deleteSong = (id) => {
147 | if (userData?.currentSong?.id === id) {
> 148 | userData?.currentSong = null;
| ^
149 | userData?.songCurrentTime = 0;
150 | pauseSong();
151 | setPlayerDisplay();