<prompt> Fanya programu ya JavaScript kwa kutumia kazi ambayo inachukua tarehe katika muundo wa MMDDYYY kama hoja yake, na hutoa siku inayolingana ya wiki kwa mfano Jumatatu, Jumanne, nk kwa kutumia console.log. Programu inapaswa pia kujumuisha utunzaji wa makosa kwa pembejeo zisizo halali za tarehe. Tafadhali hakikisha kwamba programu ni rahisi kusoma na inajumuisha maoni kuelezea kila hatua ya mchakato.  <response>: Mfano wa kazi hii ni kuunda mfululizo wa tarehe, siku, siku, siku na siku kwa kutumia string ya tarehe, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, siku, 