Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.22 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.22 KB

City Quiz

Test your knowledge of the capital cities with this multiple choice trivia game. Play online here

Rules

When the game starts, you will be given multiple-choice questions covering your geography knowledge. You have to answer a question by clicking one of the options you think is correct. If you don't know the answer, you can skip it.

You'll get an immediate feedback on whether you've chosen the correct answer. The next question will appear in 2 seconds. When you finish answering 10 questions you will get the final score (in percent).

Technologies

  • HTML
  • CSS
  • JavaScript
  • Lodash library

I used lodash library to get randomly 4 countries from the array of countries.

const options = _.sampleSize(allCountries, 4);

Installation

You need to link lodash CDN to your main index.html, inside script tag, so you can use it.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>

Future goals

I would definitely come back to this project, so I can improve it. And I am sure I will be focusing more on Front-End.

Note:

This was created at GA DC coding bootcamp in week three:)

screenshot