const day = ["sun", "mon", "tue", "the", "fri", "funckin Sat"];
function sol(a, b) { const theDay = new Date(2022-${a}-${b}); console.log(day[theDay.getDay()], theDay); } sol(5, 6);
2022-${a}-${b}