Answer to Question #166746 in HTML/JavaScript Web Application for Chandra sena reddy

Question #166746

Time Converter from hours and minutes to seconds


1
Expert's answer
2021-03-01T06:31:17-0500
<!DOCTYPE html>
<html>
<body>

<script>
  // Read the hours from the user
  var hours = parseInt(prompt("Please enter hours: "));
  
  // convert it into minutes
  var minutes=hours*60;
  
  // convert it into seconds
  var seconds=minutes*60;
  
  // print the result in alert box
  alert(`${hours} hours = ${minutes} minutes = ${seconds} seconds`);
  
</script>

</body>
</html>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS