scrimba
Learn JavaScript
Practice part 2
EmojiFighter
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
EmojiFighter
Expand for more info
index.js
run
preview
console
let fighters = ["πŸ‰", "πŸ₯", "🐊","πŸ’©", "🦍", "🐒", "🐩", "🦭", "πŸ¦€", "🐝", "πŸ€–", "🐘", "🐸", "πŸ•·","πŸ†", "πŸ¦•", "🦁"]

let stageEl = document.getElementById("stage")
let fightButton = document.getElementById("fightButton")

fightButton.addEventListener("click", function() {
// Challenge:
// When the user clicks on the "Pick Fighters" button, pick two random
// emoji fighters and display them as i.e. "πŸ¦€ vs 🐒" in the "stage" <div>.
})
Console
/index.html
-4:32