+ 4
Wrong quizzes
SoloLearn, I found a lot of quizzes wrong in challenge. If you don't have time to verify all quizzes , what about a button after a challenge? Is this quiz OK? option 1 --> skip option 2 --> yes option 3 --> no Why not? option 1--> keywords from another language option 2--> the question has stuff that I have not studied in this course option 3--> question worded incorrectly option 4--> wrong answer
4 Antworten
+ 1
var count_skip, count_okQuiz, count_wrongQuiz ;
var userXp ;
var user_newBadge = false;
// user who created the quiz
switch (quiz){
case ok:
count_ok Quiz++
break;
case no:
count_wrongQuiz++
break;
default:
count_skip++
}
if(count_wrongQuiz >100){
userXp = user Xp - 100 ;
alert ("The quiz is wrong "+count_wrongQuiz);
}else if(count_okQuiz==100) {
userXp = userXp + 100 ;
}else (count_okQuiz==5000){
user_newBadge = true;
}
+ 1
Eric this is javascript code
+ 1
Oh lol haven't seen javascript language before kinda looks identical to c++. Sorry lel
0
@didi is var even a data type for c++?, I don't think it is (not sure here, I'm not pro)