Temporal Extraction

MediumAcc. 89.2%
+30 XP 10

Clock Cycles

Converting raw units into human-readable formats is a core UI task.

  1. Deconstruct totalSeconds into minutes (whole units) and remainingSeconds (remainder).
  2. Return the string: "[totalSeconds] seconds is [minutes] minutes and [remainingSeconds] seconds."

01EXAMPLE 1

InputtotalSeconds = 130
Output"130 seconds is 2 minutes and 10 seconds."

Explanation: Calculates components.

Constraints

  • Use Math.floor().
  • Use the modulo operator.
FundamentalsMathStrings
JavaScript
Loading...
9 Hidden

Input Arguments

totalSeconds130

Expected Output

130 seconds is 2 minutes and 10 seconds.

Click RUN to test your solution