javascript - Why is order of answers not working as desired? -
I have five questions for a user who needs a user reply. The correct answer is counted and then the user is classified at the end.
I want to reveal the grading of each question immediately after each related question, after all the questions have not been asked. As it is now, it asks 2 questions out of 5 and then provides a response to the user but only after the question is asked. The order is: (ask, ask, answer, answer) but I need it (ask, answer, ask, answer) but I do not know why this is not so.
// Counters var numberExpress = 5; Var correct location = 0; // five questions var raining = sign ("What is raining today?"); Married = Prompt ("Am I getting married?"); / * The rest of the questions var day = sign ("What is this day?"); Var threes = Speedy ("3 + 3 + 3 does the equivalent?"); Var number = sign ("What number am I thinking?"); * / / // The first question - is it raining (barking) uppercase () === "no") {correct junction = 1; Alert ("right. \" You "+ correct distillation" "out of the correct numbers" +++ questions); } And {warnings ("You did not want that it was. \ NYou" + right details "+" The correct answer from the questions of numbers ") //} Second question - am I married (married? Uppercase ) === "yes") (right uplift + = 1; alert ("right! I'm married. \ NYou are now" right answer "+" The correct answer outside the questions of numbers "); } And {warnings ("wrong, I'm married. \ NYou still" + perfect leverage + "+ numbers" out of the correct numbers ");} any of the most help
just place
var Married = Prompt (" What am I married? "); before the other.
Prompt () will show soon soon and not when you start doing some operations with this variable.
Comments
Post a Comment