Want to schedule an appointment?

// when the DOM is ready document.addEventListener("DOMContentLoaded", function() { // get the the span element const yrSpan = document.querySelector('.year-span'); // get the current year const currentYr = new Date().getFullYear(); // set the year span element's text to the current year yrSpan.textContent = currentYr; });