Document Começar novamente. TypeError: Cannot set properties of null (setting…
Rate quality
Private research annotation
Sign in to add a private research label or note.
Jump to turn (23)
- 1Document Começar novamente. TypeError: Cannot set properties of null (setting 'i
- 2But I created the span class turno
- 3IS there a innertext option for html tags?
- 4Why let this.variable = "variable" dont work inside a function on ?
- 5The same thing for const?
- 6Ok, I want to create a class
- 7How can i do the instace
- 8For my tic tac toe, is it possible to use object orientation and classes? Or bet
- 9How can I call resetar when I click the button on my previous html?
- 10So I can't do it using onclick?
- 11Document Começar novamente. When player1 wins my span\player says that player2 w
- 12NO, when jogador 1 won, it still said jogador 2 won
- 13For my class, is this functino too long? add\event\listeners(){ for (let i = 0;
- 14You tell me, is it easy to understand?
- 15How so?
- 16For instance?
- 17What about now: add\event\listeners(){ for (let i = 0; i { if (this.jogo\Ativo){
- 18Oi, olha implementei as diagonais e colunas add\event\listeners(){ for (let i =
- 19Gostou de como eu implemente minha função check\winner? Voce faria diferente?
- 20Jogador 1 => Pontos Jogador 2 => Pontos Começar novamente. Como centralizo horiz
- 21nao funcionou
- 22nao esta funcionando
- 23JA tentei esse e nao funcionou
- User
Document
Começar novamente.
TypeError: Cannot set properties of null (setting 'innerHTML') at jogo_velha.html:40:27
- Assistant
The error message "TypeError: Cannot set properties of null (setting 'innerHTML')" indicates that there is an attempt to set the
innerHTMLproperty of a null value. In this case, it is likely that the line causing the error isspan_player.innerHTML = jogador;.One possible reason for this error is that the HTML element with the class
.turnois not found by thequerySelectormethod, and thereforespan_playeris assigned a value ofnull. To fix this error, you can make sure that the HTML element with the class.turnoexists in the HTML file and is correctly spelled. - User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.