From f50eb7bb9acdaa1e413f71b46e2f7e8830613931 Mon Sep 17 00:00:00 2001 From: Yixuan Dai <40338102+dyx9@users.noreply.github.com> Date: Thu, 15 Feb 2024 21:38:07 +0800 Subject: [PATCH] fix(curriculum): Update description and test to ignore order (#53683) Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com> --- .../65420dcfc60580678dad7a92.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/65420dcfc60580678dad7a92.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/65420dcfc60580678dad7a92.md index ce44129afb1..356e65fae15 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/65420dcfc60580678dad7a92.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/65420dcfc60580678dad7a92.md @@ -9,7 +9,7 @@ dashedName: step-14 Inside the `map()`, add a `return` statement with backticks where you will interpolate all the elements responsible to displaying the song details. -Inside the backticks, create an `li` tag with the id `song-${song.id}` as the first attribute. Also, add the class `playlist-song` as the second attribute. +Inside the backticks, create an `li` element with an `id` attribute of `song-${song.id}` and a `class` attribute of `playlist-song`. # --hints-- @@ -25,16 +25,16 @@ You should create an `li` tag inside the backticks. assert.match(code, /return\s*`\s*]*\sid\s*=\s*('|")song-\$\{song\.id\}\1[^>]*>\s*<\/li>\s*`;?/) ``` -Your opening `li` tag should have the class `playlist-song` as its second attribute and value. +Your opening `li` tag should have a `class` attribute set to `playlist-song`. ```js -assert.match(code, /return\s*`\s*\s*<\/li>\s*`;?/) +assert.match(code, /return\s*`\s*]*\sclass\s*=\s*('|")playlist-song\1[^>]*>\s*<\/li>\s*`;?/) ``` # --seed--