fix(curriculum): Clarified the challenge grammar for better understanding (#55393)

This commit is contained in:
Anyona-00
2024-07-02 12:24:23 +03:00
committed by GitHub
parent 1c1b08498c
commit 3e659b53b3
@@ -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"`. Using a ternary, set the attribute value to `Play ${song.title}` or `"Play"` if `song?.title` is not available.
Don't forget you need template interpolation here, so you need to use backticks.