Math question in "confirm" and "prompt" JavaScript
I am trying to basically have the user input information to answer some math questions. Pretty much like a quiz, but confirmed by JavaScript coding. I figured a Confirm code may be easy, that way I ask one question at a time and it can return true or false based on the coding of JavaScript. 1. Is there possibly an easier way? 2. How do I get the confirm box to possibly state "True or False" or "Yes or No" instead of "Ok or Cancel"? 3. How do I get the users input double checked by coding in JavaScript? example: Prompt box asks to type in a number, then the user inputs the information as far as mathematics is concerned. How do I have the code check the user inputs accuracy? such as 1-1=? and the user inputs 0. How do I have it check the information for being true? If and Else coding? 4. If I use "If and Else" coding, how do I use that with Prompt boxes and Confirm boxes?