Hours-related exercise in JavaScript
I have a function that receives an hours array (hoursArray) and a number variable (minutes). hoursArray are the available hours of a barber schedule. Duration is de duration of the service that the client books (hair salon). The current code…