- Define an element with id
currentYear
. - Paste the following, after that element
<script>document.querySelector('#currentYear').innerHTML = new Date().getFullYear();</script>
Or the following. I don't see why you would pick the longer one though.
<script src="https://gist.github.com/raw/9ccf06916caa8583be5ca5c1995cc2a1/getCurrentYear.js" type="application/javascript"></script>