← Back to challenges

Frames Per Second

JavaScriptMediumalgorithmslanguage_fundamentalsmathnumbers

Instructions

Create a function that returns the number of frames shown in a given number of minutes for a certain FPS.

Examples

frames(1, 1) ➞ 60

frames(10, 1) ➞ 600

frames(10, 25) ➞ 15000

Notes

FPS stands for "frames per second" and it's the number of frames a computer screen shows every second.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Miserable Parody of a Calculator