var today = new Date(); var year = today.getFullYear(); var element = document.getElementById('main'); element.innerHTML = `<p>Today's date is ${today}</p>`;