document.addEventListener("DOMContentLoaded", ()=>{ const today = new Date() const year = today.getFullYear() prompt(year) })