fix(curriculum): add backticks to userData.songs (#52815)

This commit is contained in:
Sushil Gupta
2023-12-29 13:36:14 +05:30
committed by GitHub
parent 3c32b171fb
commit 22ea18cd0d

View File

@@ -18,7 +18,7 @@ const numsGreaterThanThree = numArr.filter((num) => num > 3);
console.log(numsGreaterThanThree) // Output: [10, 8, 4, 5]
```
Use the `filter()` method on `userData?.songs`. Pass in `song` as the parameter of the arrow function callback and use implicit return to check if `song.id` is strictly not equal to `id`. Assign all of that to the userData.songs.
Use the `filter()` method on `userData?.songs`. Pass in `song` as the parameter of the arrow function callback and use implicit return to check if `song.id` is strictly not equal to `id`. Assign all of that to the `userData.songs`.
# --hints--