That is my code so far but fail
currentTitle ? ‘ifTrue’ : ‘ifFalse’){
currentTitle=“playingSong.textContent”;
}else{
currentTitle=“”;
}if (currentArtist ? ‘truthy’){
currentArtist=‘songArtist.textContent’;
}else{
curretArtist=“”;
};
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
currentTitle ? 'ifTrue' : 'ifFalse'){
currentTitle="playingSong.textContent";
}else{
currentTitle="";
}if (currentArtist ? 'truthy'){
currentArtist='songArtist.textContent';
}else{
curretArtist="";
};
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 70
Condition is currentTitle. It will return true or false. You should change true or false parts of this ternary according the things that given to you in the challenge.