Html – Why my code for showing current date doesn't work?
why my code isn't working? it doesn't display nothing... let todayDate= document.getElementById('data'); let today = new Date(); let weekday= `${today.getDay() < 10 ? "0" : ""}${today.getDay()}` let day=`${today.getDate() < 10 ? "0" : ""}${today.getDate()}`; let month=`${(today.getMonth() + 1) < 10…