+ 1

Ahh this Code don't work

This Code don't puta Hola when i click te Butrón and i use without error onlick and id https://code.sololearn.com/WK4ufBAcTcg0/?ref=app

14th Apr 2022, 9:09 AM
Alejandro
2 Réponses
+ 2
What do you mean by this? num >= boton // ??? You are comparing an number to an html element? What is it supposed to do? Anyways, you need to add the next function to your button: onclick='next()' on html button element
14th Apr 2022, 9:17 AM
Lisa
Lisa - avatar
+ 1
Alejandro First thing you didn't call function on click event 2nd thing how you can compare (num >= boton) because here 'var boton = document.getElementById('Boton');' will return object Just print boton and see on console.
14th Apr 2022, 9:16 AM
A͢J
A͢J - avatar