scrimba
Frontend Career Path
Getting hired
JavaScript Interview Challenges
Solution - Find Free Podcasts
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Solution - Find Free Podcasts
AboutCommentsNotes
Solution - Find Free Podcasts
Expand for more info
index.js
run
preview
console
import podcasts from "./data.js";

/* Find Free Podcasts

We have a list of podcasts and need the ability to filter by only
podcasts which are free.

Write a function that takes in the podcast data and returns an new
array of only those podcasts which are free.

Additionally, your new array should return only
objects containing only the podcast title, rating, and whether or
not it is paid.

Expected output:
[
{title: "Scrimba Podcast", rating: 10, paid: false},
{title: "Something about Witches", rating: 8, paid: false},
{title: "Coding Corner", rating: 9, paid: false}
]
*/

function getFreePodcasts(data){

}

console.log(getFreePodcasts(podcasts))
Console
undefined
,
/index.html
-2:00