Build a Quiz Game - Build a Quiz Game

Tell us what’s happening:

This code should be good until test 7. I have not created my functions yet, but it fails Test 4. I’ve tried single quotes, double quotes neither seem to affect the outcome. 1 - 3, and 5 -7 all get checks.

Your code so far

const questions = [
  {
    category: "",
    question: "",
    choices: ["", "", ""],
    answer: ""
  },
  {
    category: "",
    question: "",
    choices: ["", "", ""],
    answer: ""
  },
  {
    category: "",
    question: "",
    choices: ["", "", ""],
    answer: ""
  },
  {
    category: "",
    question: "",
    choices: ["", "", ""],
    answer: ""
  },
  {
    category: "",
    question: "",
    choices: ["", "", ""],
    answer: ""
  }
];

Your browser information:

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

Challenge Information:

Build a Quiz Game - Build a Quiz Game

try adding some content, instead of just writing empty strings

but why would that only effect test 4?

maybe it’s the only test that checks for something in the strings

Ha! It checks for a question mark. I put one in each string and it passes. Thanks!

you should really fill out those strings, it makes testing easier

Yeah, I suppose. I was going to fill in values next. Just wasn’t sure why it was failing to create the object. I’m new to coding so “baby-steps” is my methodology. Once I got passed this, the rest was easier. Thank you for your assistance. I will keep this in mind for future challenges.