lector('.lastResult');
    const lowOrHi = document.querySelector('.lowOrHi');

    const guessField = document.querySelector('.guessField');
    const guessSubmit = document.querySelector('.guessSubmit');

    let randomNumber = Math.floor(Math.random() * 100) + 1;
    let guessCount = 1;

    guessSubmit.addEventListener('click', checkGuess);

    function checkGuess() {
      let userGuess = Number(guessField.value);

      if (guessCount === 1) {
        guesses.textContent = 'Previous guesses: ';
     