I'm trying to print the current year next to my copyright in my footer, but it's not working.
The "Name " will be replaced by my brand name.
<div class="footer-content-3">
    <i class="far fa-copyright"></i>
    <h4 id="copyright-year"></h4>
</div>
<script>
    var year = getFullYear();
    document.getElementById('copyright-year').innerHTML = ("Name " + year);
</script>
 
     
     
     
    