Days of the week for the first and last day of the month

Let's now make a function that will get the day number of the week for the first month day:

function getFirstWeekDay(year, month) { }

And a similar function for the last day of the month:

function getLastWeekDay(year, month) { }

Implement the specified functions and check their work.

enru