Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nextAnswers = ["", "24", "25.5", "15", "32","", "a statement", "a question", "a sentence", "a metaphor"];
- var nextQuestions = ["Find x in the equation: 2x+12=63", "This is an example of...",];
- let possibilities = {
- 'clicked1': 0,
- 'clicked2': 0,
- 'clicked3': 0,
- 'clicked4': 0,
- };
- for(let i=0; i<1; i++) {
- answerOne.addEventListener("click", function() {
- possibilities['clicked1']++;
- question.innerHTML=(nextQuestions[i++]);
- answerOneDataT.innerHTML=(nextAnswers[i++]);
- answerTwoDataT.innerHTML=(nextAnswers[i++]);
- answerThreeDataT.innerHTML=(nextAnswers[i++]);
- answerFourDataT.innerHTML=(nextAnswers[i++]);
- return;
- }); //only 1/4 of the loop the rest is the same only with answertwo, answerthree, etc
Add Comment
Please, Sign In to add comment