Final Project: Emoji Mood Selector
Solve the challenge using the concepts learned so far.
We'll cover the following...
Emoji mood selector
Add three buttons labeled βHappy π,β βNeutral π,β and βSad πβ.
When the user clicks a button, update a
<p>tag (id="mood-display") to show the selected mood emoji.
Below are some hints to help you get started:
Hints:
1οΈβ£ What should change when a button is clicked?β The mood emoji inside <p id="mood-display"> should update.
2οΈβ£ How do we listen for a button click?β Use addEventListener("click", function() {...}) on each button.
3οΈβ£ How do we update text inside an element?β Use .textContent to modify whatβs inside moodDisplay.
Write your code in the widget below:
Good job with this challenge!
If you need further help solving it, see the next lesson for the solution.