LeviGu
LeviGu LeviGu
  • 20-11-2020
  • Computers and Technology
contestada

How would you code 135 minutes and turn it into 2 hours and 15 minutes, using integer/modular division, in Javascript?

135 to 2h15

Respuesta :

Cytokine
Cytokine Cytokine
  • 20-11-2020

mins = 135;

alert("There are "+(Math.floor(mins/60))+" hour(s) and "+(mins%60)+" min(s).");

That's how I would do it. I hope this helps!

Answer Link

Otras preguntas

What does the "Guiding of Intelligence Collection" (Collection.pdf) document and "Spy at Your Service" (Articulation.pdf) say is crucial about defining an intel
you should make sure that unavailable screen options are either dimmed (also called ____) or removed.
Which is one example of how traditional Indian ways of life have changed?
the managerial approach used in values-based ethics programs is ______.
which of the following statements supports the fact that fungi are more closely related to animals than to plants?
25 g kbr is dissolved into 750 ml. what is the molar concentration of the solution? report your answer with the correct number of significant figures.
As you are giving ventilations with a resuscitation mask, the victim vomits. Which of the following would you do first? Clear the airway of the vomit immediatel
determine whether the series is absolutely convergent, conditionally convergent, or divergent. 4 7 4 · 10 7 · 9 4 · 10 · 16 7 · 9 · 11 4 · 10 · 16 · 22 7 · 9 ·
which of the following choices is not an element of the comprehensive environmental resource conservation liability act?
when a child is scheduled for a cardiac catheterization, an important health teaching point for parents is that the: