scrimba
Frontend Career Path
Making websites interactive
Challenges
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

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