Learn Basic String and Array Methods by Building a Music Player - Step 70

Tell us what’s happening:

I hope to get some help with clarifying on the syntax for ternary operator. I have been looking through the forums for this step, all of which have been explained in great detail and I feel as if I can understand what is being asked of me. However, I cannot get past the error message stating I need to use ternary operator for currentTitle. I don’t want the answer really, but at least confirmation I am following the proper syntax

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

playingSong.textContent = currentTitle ? "currentTitle" :"";

songArtist.textContent = currentArtist ? "currentArtist" : "";

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 70

Yes, your syntax is correct.

Read the challenge again and think carefully what to use after the ?.