Display current year with a little bit of JavaScript

JAN 07, 2022

In your JavaScript file…

document.getElementById("year").innerHTML = new Date().getFullYear();

Then in your HTML…

<span id="year" class="your-styles"></span>
— Adrian