Guest User

Untitled

a guest
Feb 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. var nextAnswers = ["", "24", "25.5", "15", "32","", "a statement", "a question", "a sentence", "a metaphor"];
  2. var nextQuestions = ["Find x in the equation: 2x+12=63", "This is an example of...",];
  3. let possibilities = {
  4. 'clicked1': 0,
  5. 'clicked2': 0,
  6. 'clicked3': 0,
  7. 'clicked4': 0,
  8. };
  9.  
  10. for(let i=0; i<1; i++) {
  11.  
  12. answerOne.addEventListener("click", function() {
  13. possibilities['clicked1']++;
  14. question.innerHTML=(nextQuestions[i++]);
  15. answerOneDataT.innerHTML=(nextAnswers[i++]);
  16. answerTwoDataT.innerHTML=(nextAnswers[i++]);
  17. answerThreeDataT.innerHTML=(nextAnswers[i++]);
  18. answerFourDataT.innerHTML=(nextAnswers[i++]);
  19. return;
  20. }); //only 1/4 of the loop the rest is the same only with answertwo, answerthree, etc
Add Comment
Please, Sign In to add comment