(HW - TriviaGame)
Create a Trivia game using JavaScript for the logic and jQuery to manipulate HTML. Be sure to layout this app with valid HTML and stylish CSS.
- Jquery for Dom Manipulation
- html
- css
- bootstrap
function renderQ() { var quesDiv = $("
"); var ans1 = $("" + questions[questionNum].trueAns + "
");
var ans2 = $("" + questions[questionNum].falseAns1 + "
");
var ans3 = $("" + questions[questionNum].falseAns2 + "
");
var ans4 = $("" + questions[questionNum].falseAns3 + "
");
quesDiv.append(ans1).append(ans2).append(ans3).append(ans4);
$("#questions").append(quesDiv);
ansCheck();
};
- Creates a new question with each click.