Difference between revisions of "Team:Purdue/Quiz"

Line 18: Line 18:
  
 
function yesAnswer(cnt){
 
function yesAnswer(cnt){
    switch(cnt){
+
  if(cnt==0){
      case 0 :
+
  document.getElementById("Commentary").innerHTML="Correct!";
            document.getElementById("Commentary").innerHTML = "Correct!";
+
            break;
+
 
+
      default:
+
              document.getElementById("Commentary").innerHTML = "Default";
+
 
+
                break;
+
}
+
if(cnt==0){
+
    document.getElementById("Commentary").innerHTML = "Correct!";
+
 
+
 
}
 
}
  
 
return cnt+1;
 
return cnt+1;
}
 
 
function noAnswer(cnt)"{
 
 
 
 
 
 
}
 
}
  

Revision as of 13:17, 25 May 2018


Question 1

Men can also get yeast infections?

Placeholder