title: How to add input from a prompt to the local time using only JavaScript?
body: <p>I'm a software engineering student in an Intro to JavaScript course and I'm stuck on an assignment. Here's the assignment, </p>
  
  <p>in a file named alarmTime.html, use prompt() to find out how long the user wishes to nap. Then, write a statement to the document telling the user what time her/his alarm should go off. Be sure the times are local for the user. </p>
  
  <p>I'm stuck on adding the input to the user's local time. I don't really know what I'm doing wrong and I'm having difficulty understanding what to do because all I'm getting is what seems to be random numbers. Please take a look at my code and point me in the right direction. </p>
  
  <pre><code>    var howLong = prompt("How long, in hours, do you want to nap for?", 1);
      var parsedInput = parseFloat(howLong);
  
      var today = new Date();
      var currentTime = today.toLocaleTimeString();
      var myHour = today.getHours(currentTime);
  
      var alarm = today.setHours(myHour + parsedInput); 
  
  
      document.write(alarm);
  </code></pre>