mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-28 23:02:24 -05:00
fix(curriculum): move backtick in step 74 (#55062)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user