Build a Quiz Game - Build a Quiz Game

Tell us what’s happening:

The validator keeps claiming that question key should have string key. I did it and all the question related values are string

Your code so far

const questions = [{
category:"open", 
question:"Briefly tell us what you know.", choices:["I don't know", "I know that I know something", "Whatever you ask, I can respond"] ,answer:"I know that I know something"
}, 
{
category:"closed",
question:"Do you have experience in data entry in Microsoft excel?",
choices:["I don't know", "Yes", "No"] ,answer:"Yes"},
{category:"closed", 
question:"What is the result of the following (3*5-8+12/3)?", 
choices:["6.3", "11", "3"],
answer:"11"}, 
{category:"closed", 
question:"What is the neighboring country of Rwanda located in the north?", 
choices:["Kenya", "Burundi", "Uganda"] ,answer:"Uganda"
},
{
category:"closed",
question:"Among the following, what is the book that is not part of Bible?",
choices:["Maccabees", "Luc", "Mark"] ,answer:"Maccabees"}
];
function getRandomQuestion(questions){
  if(!questions || questions.length === 0) {return null;
  }
return questions[Math.floor(Math.random()*questions.length)];
}
function getRandomComputerChoice(choices){
  if (!choices || choices.length === 0){
    return null;
  }
  return choices[Math.floor(Math.random()*choices.length)];
}
function getResults(question, choice){
  if (choice === question.answer){
    return "The computer's choice is correct!";
  }
  else{
    return `The computer's choice is wrong. The correct answer is: ${question.answer}`;
  }

}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build a Quiz Game - Build a Quiz Game

Hi

A question needs a question mark …