Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Someone???? I need help with JavaScript. So.........
My problem is that I have my code inside a āwindow.onloadā function. And then a ābutton.onclickā. Inside the ābutton.onclickā function I have a āresult.innerHTML = Numberā. When I click the button the string changes but only like 3 seconds and it becomes the first string. I think that that is happening because is changing when the button is clicked. I need help with that. Iāll post the code in a following post so you can understand me better. My code has images so I donāt know if SoloLearn would lag. Also I want to know how to keep track of life and donāt always start again at 60. Thank you. Here is the Code: https://code.sololearn.com/Wkw4M45yLPh5/?ref=app
1 Resposta
+ 2
First of all you should use addEventListener not .onclick