const timer = document.getElementById('timer');
const start = document.getElementById('start');
const stop = document.getElementById('stop');
const reset = document.getElementById('reset');
const d = new Date(Date.now() - startTime);
const m = String(d.getMinutes()).padStart(2, '0');
const s = String(d.getSeconds()).padStart(2, '0');
const ms = String(d.getMilliseconds()).padStart(3, '0');
timer.textContent = `${m}:${s}.${ms}`;
console.log(`${m}:${s}.${ms}`);
start.addEventListener('click', () =>{