const meter = document.getElementById("meter") const today = new Date() // Task: // Write a function to wire up the festivity loader to reflect how many days are remaining until Christmas! meter.value = (25 - today.getDate())+1 // Stretch goals: // - Animate the loader. // - Change the colors depending on the meter's value.
1
2
3
4
5
6
7
8
9
const meter = document.getElementById("meter")
const today =new Date()
// Task:
// Write a function to wire up the festivity loader to reflect how many days are remaining until
Christmas!
meter.value = (25- today.getDate())+1
// Stretch goals:
// - Animate the loader.
// - Change the colors depending on the meter's value.