1

//this is what I have so far.. just wondering where and how I'd put the rest for the score tracker? I'm going to be making 3 of these multiple choice questions, so what would be the best way I lay that out and transition from one question to another? also, I'm wondering what a boolean is and if that would help me for making an answer not case-sensitive. Thanks a lot!

btn.addEventListener("click",button);
function button(click) {
 var answer:String=input_txt.text;
 if (answer=="") {
  output_txt.text="Correct!";
 } else {
  output_txt.text="Incorrect";
 }
}
nico
  • 50,859
  • 17
  • 87
  • 112
Uraji
  • 11
  • 1

1 Answers1

0

Have a variable called score, increment it a certain amount each time a correct answer is chosen.

A boolean is a variable that is either True or False. If you want make the text non case sensitive, you can use the stringName.toLowerCase() method.

AttackingHobo
  • 259
  • 3
  • 12