JavaScript | Get the start and end of the day in UTC

Given a date, the task is to determine the start and end of the day using javascript. We’re going to discuss a few techniques.
First few methods to know.