title: I am trying to make my code work for singular inputs eg: when i input 1 it should return 0 hours , 1 minute instead of 0 hours, 1 minutes
body: <p>The code runs pretty well with plural numbers. eg: 150 output: 2 hours, 30 minutes, but when i add a singular either in hours or minutes it still outputs: hours and minutes instead of hour and minute.</p>
  <pre><code>function timeConverter(number) {
    var num = number
  
    var hours = (num / 60);
  
    var hrs = Math.floor(hours);
    var minutes = (hours - hrs) * 60;
    var min = Math.round(minutes);
    return +hrs + &quot; hours, &quot; + min + &quot; minutes.&quot;
  }
  
  console.log(timeConverter(1)
  </code></pre>