text: import { logger } from '../../../lib/logger.js';
  
  import { numbers } from '../data.js';
  
  export const resetHandler = () => {
    // reset state
    numbers.current = 0;
    numbers.past = [];
    numbers.step = 1;
  
    // reset UI
    document.getElementById('current-number').innerHTML = numbers.current;
    document.getElementById('step-size').value = numbers.step;
  
    // log user interaction
    logger.add({
      handler: 'reset',
      numbers,
    });
  };
  