JavaScript Algorithms - Basic String and Array Methods - Step 32

Hello! I am working on the music player project in the JavaScript Algorithms and Data Structures course and I can’t get Step 32 to submit. I’ve tried different browsers, networks, days, etc. I checked the page console and I’m getting this error:

SyntaxError: unknown: Support for the experimental syntax ‘optionalChainingAssign’ isn’t currently enabled

Any advice on how to fix this is much appreciated!
I’m currently using Google Chrome.

Please post your code and a link to the Step. Thanks

Sure!

if (userData?.currentSong = null || userData?.currentSong.id !== song.id) {
  audio.currentTime = 0;
};

The link to the step is here

This isn’t syntactically valid. You want === and not =

1 Like

Got it, thank you! Can’t believe I didn’t notice that haha.

That’s why we’re here to help - typos happen!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.