Skip to content

wardcj1/TriviaGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

TriviaGame

(HW - TriviaGame)

Live Link

At the start of the game, questions display and the user clicks on their answer choice.

HW Requirements

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.

Technologies Used

  • Jquery for Dom Manipulation
  • html
  • css
  • bootstrap

Sample Code Used

function renderQ() { var quesDiv = $("

" + questions[questionNum].ask + "

"); 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.

About

(HW - TriviaGame)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published