Can anyone help me figure out what i'm doing wrong?
var chocies = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",]; var wins = 0; var losses = 0; var numberGuesses = 12; var guesses = []; document.onkeyup = function(event) { var guesses = event.key; var computerGuess = chocies[Math.floor(Math.random() * choices.length)]; var choices = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",]; console.log(choices) if (choices0.indexOf(userGuesses) > -1) { wins++; numberGuesses --; guessChoices = []; } if (userGuesses != guesses) { numberGuesses = 12; guessChoices.push(guessesSoFar); } if (numberGuesses === 0) { numberGuesses = 12; losses ++; guessChoices = []; } }