Frames Per Second
THE CHALLENGE
Create a function that takes a number as its only argument and returns true if it's less than or equal to zero, otherwise return false.
Please notice that I use print in the code instead of console.log to show the result in my built-in console below. However, you should use console.log to
show the result in your normal console
THE CODE
// week 4, day 2, challange 3
// Frames Per Second
function frames(minutes, fps) {
let frames = minutes * fps * 60;
print(minutes + " minutes at " + fps + "fps is " + frames + " frames");
// to show the result on your console use
// console.log(minutes + " minutes at " + fps + "fps is " + frames + " frames");
};
frames(1, 1);
frames(10, 1);
frames(10, 25);
THE EXECUTION RESULT