function PageItem(){ this.chaptername; this.chapNr; this.chapterlink; this.subchaptername; this.subchapterlink; this.pagetitle; this.pageid; this.template; this.pagecontent; this.pageNumber; this.prevPage; this.nextPage; this.hasChallenge; //Saves a true/false if this page contains a challenge (question) this.isTestQuestion; this.minTestGrade; this.inToc = true; //Info for question pages this.currentQuestionInfo; }; function QuestionInfo(){ this.isTestQuestion = false; //Saves true/false if the question is part of a test this.minTestGrade; //Saves the min test grade for a test this.nrAttempts = 0; //Attempts the user took to get it correct (or so far if it isn't yet correct) this.isCorrect = false; //If the User got this question correct this.userResponses = new Array(); //Saves the user responses this.correctResponses = new Array(); this.isFirstQuestion = false; }