This simple demo uses JavaScript to convert minutes to hours and minutes. It’s a great example of the power of JavaScript for building onto your Storyline projects.

Looks great! one thing to consider is to add and subtract in multiples of 10 if the number the person types in ends in 0. Just because there is no way that 400 min could equal X hours and 35 min. I doubt many students would even think about the problem that way so probably not that big of deal. Just a tip! :) Again great way to make distractors!

In JavaScript to check if a number ends in 0 you can use the %. The % is called mod. It is like divide but instead of giving you the answer it give you the remainder.
Example
12/10 = 1 remainder 2
therefore
12 % 10 = 2.
Or
20 % 10 === 0.
So all you would need to do is add an if statement just check if the mod equals 0.
I didn't run it enough to know if you already did, but you could also add in a random (with in a range) spacing up and down too!
Sorry I just have ideas and like to share, these were not criticisms just the way my brain works. I do it with all my own projects, not always a good thing.
Hope you have a good day!
Your storyline was great!

Cool thanks Joshua. I will take a took at incorporating your idea. The version of this that I used in my course was slightly different - the user did not input a value so didn't think about putting in the check.

## 5 Comments