scrimba
JS Challenges
Challenge: Chef Mario's Recipe Book
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

Challenge: Chef Mario's Recipe Book
AboutCommentsNotes
Challenge: Chef Mario's Recipe Book
Expand for more info
index.js
run
preview
console
/* Chef Mario's Recipe Book 
Chef Mario was in the middle of writing his cookbook masterpiece
when he spilled coffee on his keyboard! Now all his recipes have repeat
ingredients.

Help save Chef Mario's cookbook by writing a function that takes in an array
and returns a new array with all the duplicates removed.

Example input: ["🌈 rainbow", "🦄 unicorn", "🍭 lollipops", "🦄 unicorn", "🍭 lollipops"];
Example output: ["🌈 rainbow", "🦄 unicorn", "🍭 lollipops"];
*/

const eggScrambleRecipe = [
"🥓 bacon",
"🥓 bacon",
"🍳 eggs",
"🫑 green peppers",
"🧀 cheese",
"🌶️ hot sauce",
"🥓 bacon",
"🥦 broccoli",
"🧀 cheese",
"🥦 broccoli",
"🌶️ hot sauce"
]

function removeDupesFromArray(arr){

}

console.log(removeDupesFromArray(eggScrambleRecipe));
Console
[
"🌈 rainbow"
,
"🦄 unicorn"
,
"🍭 lollipops"
]
,
/index.html
-0:47