function displayQuestion(){
    
        if(i<questions.length){
            question.textContent = questions[i].question;
                for(j; j<questions[i].answers.length; j++){
                    button[j].textContent = questions[i].answers[j];
                }
            j = 0;
        }
}
//displays questions and answers for each question
displays questions and answers for each question
displays questions and answers for each question
function displayQuestion(){
        if(i<questions.length){
            question.textContent = questions[i].question;
                for(j; j<questions[i].answers.length; j++){
                    button[j].textContent = questions[i].answers[j];
                }
            j = 0;
        }
}
function displayQuestion ( ) { if ( i < questions . length ) { question . textContent = questions [ i ] . question ; for ( j ; j < questions [ i ] . answers . length ; j ++ ) { button [ j ] . textContent = questions [ i ] . answers [ j ] ; } j = 0 ; } }
displays questions and answers for each question
displays questions and answers for each question