Ad
  • Custom User Avatar

    var questions = [{
    question: "What's the currency of the USA?",
    choices: ["US dollar","Cats", "Ruble", "Horse", "Gold"],
    corAnswer: 0,
    }, {
    question: "Where was the American Declaration of Independence signed?",
    choices: ["Philadelphia","California", "At the bottom", "Frankie pub", "China"],
    corAnswer: 0,
    }];

    function looper(arr) {
    for (var i = 0; i < arr.length; i++) {
    questions[i].userAnswer = null;
    }
    }

    looper(questions);

    I used the code above....which should be correct, yet your test considers it wrong....why?