please my is victorcapito,i have this javascrip problem

THIS IS MY QUESTION:

1)I want Write a Javascript function that creates an array of the months of the year, accepts a range of numbers (31 - 42) and alerts the corresponding month of the year in the array.

2)I want Write a Javascript code for a digital clock that ticks from the current time and re-directs to another page at exactly ten minutes...