work on car code

This commit is contained in:
2024-12-18 11:34:21 +03:30
parent 9fccf770d5
commit aedeb62849
7 changed files with 168 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
export const formatCounter = (counter) => {
const minutes = Math.floor(counter / 60).toString().padStart(2, '0');
const seconds = (counter % 60).toString().padStart(2, '0');
return `${minutes}:${seconds}`;
};