scrimba
JS Challenges
Challenge - Emoji Slot Machine
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 - Emoji Slot Machine
AboutCommentsNotes
Challenge - Emoji Slot Machine
Expand for more info
index.js
run
preview
console
/*
Let's create an emoji slot machine! Replace the hardcoded
data with random fruit emojis from an emojis API.

- Request emoji food data from the API resource below. Log it and look at it!
- Write a function that takes in the data and returns a new array of only
fruit emoji objects
- Write a function to get 9 random fruits from your new array of fruit

- Load nine random fruits into the slot machine
*/

const slotMachine = document.querySelector('.emoji-slots-game');
const food = 'https://apis.scrimba.com/emojihub/api/all/category/food-and-drink';

function makeFruitArray(arr){

}

function getRandomFruits(arr){

}

// write your fetch request here
Console
/index.html
-1:26