fix(curriculum): move backtick in step 74 (#55062)

This commit is contained in:
kmurphy1919
2024-06-01 21:35:10 -07:00
committed by GitHub
parent 9f41feb40d
commit a2fade59b5

View File

@@ -9,7 +9,7 @@ dashedName: step-74
The `setPlayButtonAccessibleText` function will set the `aria-label` attribute to the current song, or to the first song in the playlist. And if the playlist is empty, it sets the `aria-label` to `"Play"`.
Use the `setAttribute` method on the `playButton` element to set an attribute named `"aria-label"`. For the value, use a ternary to `set song?.title` to `Play ${song.title}` or `"Play"` if there's no `song.title` available.
Use the `setAttribute` method on the `playButton` element to set an attribute named `"aria-label"`. For the value, use a ternary to set `song?.title` to `Play ${song.title}` or `"Play"` if there's no `song.title` available.
Don't forget you need template interpolation here, so you need to use backticks.