From df0d1df38c72f7d47a49ecf18b290993d1ae7e4b Mon Sep 17 00:00:00 2001 From: Srikanth Kandi <87417638+srikanth-kandi@users.noreply.github.com> Date: Wed, 14 Feb 2024 21:09:34 +0530 Subject: [PATCH] fix(curriculum): updated tests and desc for step 8 of music player (#53682) --- .../653281af14be5f2055310f8e.md | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 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/653281af14be5f2055310f8e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/653281af14be5f2055310f8e.md index 0f8411659cf..6de4928f664 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/653281af14be5f2055310f8e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-string-and-array-methods-by-building-a-music-player/653281af14be5f2055310f8e.md @@ -7,16 +7,28 @@ dashedName: step-8 # --description-- -Create a `userData` object that will contain the songs, the current song playing, and the time of the current song. +Your music player should keep track of the songs, the current song playing, and the time of the current song. To do this, you will need to create an object to store this information. -Declare an empty `userData` object using the `let` keyword. +Start by using the `let` keyword to declare a new variable called `userData` and assign it an empty object. # --hints-- -You should use the `let` keyword to create an empty `userData` object. +You should have a variable called `userData`. ```js -assert.match(code, /let\s+userData\s*=\s*\{\s*\};?/) +assert.isDefined(userData); +``` + +You should use the `let` keyword to create the `userData` variable. + +```js +assert.match(code, /let\s+userData\s*=/) +``` + +You should assign an empty object to your `userData` variable. + +```js +assert.deepEqual(userData, {}); ``` # --seed--