why it doest pass?
Inside the case
for mm-dd-yyyy-h-mm
, use string interpolation to assign the formatted date from above to the textContent
property of currentDateParagraph
. Make sure to use the month
, day
, year
, hours
, and minutes
variables in your answer.
case "mm-dd-yyyy-h-mm":
currentDateParagraph.textContent = `${month}-${day}-${year} -${hours} Hours - ${minutes} Minutes`;
break;
}