0
Q:

dynamic copyright year

# Note you must give the ID copyrightDynamic to the html tag 
# that will be holding your text

const newYear = new Date().getFullYear();
const copyrightText = newYear + " © Copyright Company Name"
document.getElementById("copyrightDynamic").innerHTML = copyrightText;
0

New to Communities?

Join the community