Problem with lottery game code

Asked

Viewed 157 times

-1

Basically the code is to simulate a lottery, the user must try to guess one of the numbers of the array, if you get it you get congratulations if it is not warned that you have made a mistake, but when I perform no action happens by clicking the button.

inserir a descrição da imagem aqui

  • 1

    Bring your code here, avoid using an image. You can still use the tag "Javascript/HTML/CSS code snippet" that your code can run right here, just press CTRL+M.

1 answer

0

The id of the elements is case-sensitive.

In the stretch

var botaoAdivinhar = document.getElementById('Adivinhar');

change the id string from Guess to guess'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.