-
-
Save eliorivero/c79a2952227caae033e2 to your computer and use it in GitHub Desktop.
Display the current year
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var theYear = document.createElement( 'div' ); | |
theYear.classList.add( 'the-year' ); | |
theYear.textContent = 'Copyright ' + new Date().getFullYear() + ' My Company.'; | |
document.body.appendChild( theYear ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment