main.js
1
2
3
4
5
6
7
8
9
10
const copyRightYear = () => {
    let copyYear=Symbol();
    copyYear=new Date().getFullYear();
    // const spanYear=document.getElementById('spanYear');
    const body = document.querySelector('body');
    //return body.innerHTML=`Copyright © 2012 - ${copyYear} ❤️ xgqfrms`;
    //return body.append =`Copyright © 2012 - ${copyYear} ❤️ xgqfrms`;
    return body.appendChild =`Copyright © 2012 - ${copyYear} ❤️ xgqfrms`;
}
window.onload=copyRightYear();
Native Browser JavaScript