scrimba
Frontend Career Path
Getting hired
JavaScript Interview Challenges
Challenge - Save the Weekend
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

AboutCommentsNotes
Challenge - Save the Weekend
Expand for more info
index.js
run
preview
console
import podcasts from "./data.js";

/* 🌴 Save the Weekend 🌴

Your best friend is a copywriter who writes product descriptions
for a living. You want to use your hacking skills to help them
automate their job so you both can spend the weekend on a
tropical island.

Use array methods and the existing podcast data to write a function that
can generate a description for each podcast.

Add the description as a new property on each podcast object, and return
a new podcast array where each podcast has a description.

Each description should look like this:
[
{
id: 1,
title: "Scrimba Podcast",
...
description: "Scrimba Podcast is a 50 minute education podcast hosted
by Alex Booker."
}
...
]

If the podcast has more than one host, you can display only the first host.

Stretch goal: Display all three hosts in the description, seperated with commas:

Example description: "Coding Corner is a 55 minute education podcast hosted by Treasure Porth, Guil Hernandez, and Tom Chant."
*/

function createDescriptionsFor(data){

}

console.log(createDescriptionsFor(podcasts))
Console
undefined
,
/index.html
-1:40