Trying to build a quiz

Just for fun, im going to create a quiz using javascript…
Heres what I have so far…


// JavaScript Document
var quiz = [];


var question1 = {
    question : "What is 3 + 4",
    answers  : ["3","5","7","11"]
    correct  : 2
};
var question1 = {
    question : "What is 3 + 0",
    answers  : ["3","5","7","11"]
    correct  : 1
};
var question2 = {
    question : "What is 3 + 3",
    answers  : ["3","5","7","11","6"]
    correct  : 4
};
var question3 = {
    question : "What is 3 + 8",
    answers  : ["3","5","7","11"]
    correct  : 3
};
var question4 = {
    question : "What is 1 + 4",
    answers  : ["3","5","7","11"]
    correct  : 1
};
var question5 = {
    question : "What is -2 + 4",
    answers  : ["3","2","7","11"]
    correct  : 1
};
quiz.push(question1);
quiz.push(question2);
quiz.push(question3);
quiz.push(question4);
quiz.push(question5);

//I create an array, and pushed each of my question objects into it
//below is the function that outputs each question, along with all the answers onto the page


function drawQuestion{current) {
	var query = document.getElementById("question");
	var answer1 = document.getElementById("option1");
	var answer2 = document.getElementById("option2");
	var answer3 = document.getElementById("option3");
	var answer4 = document.getElementById("option4");
	var answer5 = document.getElementById("option5");
	
	query.innerHTML = quiz[current].question;
	option2.innerHTML = quiz[current][answers][0];
	option2.innerHTML = quiz[current][answers][1];
	option3.innerHTML = quiz[current][answers][2];
	option4.innerHTML = quiz[current][answers][3];
	option5.innerHTML = quiz[current][answers][4];
	
}

//this runs whenever the "submit Answer" button is clicked on the web page which outputs the next question and increments the score if  the answer is correct.  Lastly if the last guestion is reached, we simply alert the score
function submitAnswer(selected) {

var score = 0
  if(quiz[current].correct  == selected) {
     score++;
  }
  current++;
  drawQuestion(current);;
  if (current == 5) {
  alert(score+'/5');
}

Is my thinking on the right track here?

Yes it is, though instead of question1 using an array to contain the objects will be more useful.


var quiz = [
    {
        question : "What is 3 + 4",
        answers  : ["3","5","7","11"]
        correct  : 2
    },
    {
        question : "What is 3 + 0",
        answers  : ["3","5","7","11"]
        correct  : 1
    },
    ...
];