I want to count how many specific days(i.e. Sunday) occur in a range of dates.
function countDays(startDate, endDate, specificDay){
//return how many "Sundays" appear between dates.
}
console.log(countDays(11/11/22, 12/12/22, 'Sunday'));//=> prints a number