+ 3
Why does this skip my first question to go on to [2] and [3]
Tried many ways cant get it to implement question [1]. About to say screw it and skip it myself! https://code.sololearn.com/WbIL76iAT8mT/?ref=app
4 Antworten
+ 5
It doesnt skip for me either. If I change the if statements to start with y==1, the text changes to Text 1 on the first click on true.
And you also could change the html, so that you dont delete the buttons on click, maybe like this:
<div><p id="text">...text to change...</p><button id="buttonT">True</button><button...>False</button></div>
Then you would need to change the position of the buttons too.
+ 3
i don't get what you mean. i see question 1 appears after two clicks on true now. so your problem solved?
add console.log(y) to keep track of the value of your y.
0
Removed it and still skips