Closed Reasonab1e closed 2 months ago
In this line ${minutes}:${seconds}
you will need to check the string of seconds
for length with a condition (exactly as a string, for this you can use the toString() or String() methods, the reference book helps), and if the length is more than less than two characters (the case as in your screenshot), you need to add another zero ("0") to the string (there after the colon), and if the condition is false (in the else part of the type) do not add "0".
HINT: All this can be written in the same line, using the ternary operator - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_operator)
@Reasonab1e