As far as I understand it, the time in the brackets tells you to enter a time. For example;
const d = new Date();
const t = d.getMinutes();
console.log(t);
The main part you ask is adding the remainder of the 60th of the time you entered to 0. When we write the same code this way, if my minute is 33, we will see 34 output;
const d = new Date();
const t = d.getMinutes();
const getTime = "0" + Math.floor(t%60);
getTime.slice(-2);
console.log(t);
**Edit: An alternative**
You're looking at the `remainder operator` and the `slice method`.
Whenever code is confusing, it can help to break it up into named pieces and print them. This snippet does just that:
// Tests
formattedMinsAndSecs(5);
formattedMinsAndSecs(3611);
formattedMinsAndSecs(999999);
// Reworked function
function formattedMinsAndSecs(seconds){
console.log("input:", seconds);
const minsPart = Math.floor(seconds / 60);
console.log("minsPart:", minsPart);
// Remainder operator (%) gets remainder after division
const secsPart = Math.floor(seconds % 60);
console.log("secsPart:", secsPart);
const withLeadingZero = "0" + secsPart;
console.log("withLeadingZero:", withLeadingZero);
// slice method with 1 negative argument gets last N chars
const lastTwoCharacters = withLeadingZero.slice(-2);
console.log("lastTwoCharacters:", lastTwoCharacters);
const formatted = minsPart + ":" + lastTwoCharacters
console.log("formatted:", formatted, "\n\n");
return formatted;
};