In your JavaScript file…

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

Then in your HTML…

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