scrimba
Note at 1:29
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
Note at 1:29
Expand for more info
index.js
run
preview
console
const greeting = document.getElementById("greeting")
const btn = document.getElementById("btn")

function fix() {
// Task:
// - Write a function to fix the UI problems with this Christmas message (make it Christmassy!)
greeting.innerHTML = "<p>πŸ¦ŒπŸŽ„πŸ¦ŒπŸŽ„πŸ¦Œ Have a Merry Christmas and a Happy New Year!πŸ¦ŒπŸŽ„πŸ¦ŒπŸŽ„πŸ¦Œ</p>"
// - Run the function when the Fix button is clicked.
}

btn.addEventListener('click',() => {
fix()
})

//Stretch goals:
// - Add an extra theme, and the option to switch between them.
// - Change the message and theme to a New Year’s one automatically on December 31st.







Console
/index.html
LIVE