How to get current minutes of the day using Java Script?

I want to find out minutes of the day, how to get it.


export const currentMinutes = () => {
  const d = new Date();
  return d.getHours() * 60 + d.getMinutes();
}

Log in to reply