Skip to content

Jaretzbalba/Daily-Trivia-Question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Know It All | Visit here!

How It's Made:

Tech used: HTML, CSS, JavaScript

As a person who loves to test my own knowledge I created this trivia app by fetching questions/answers from an API. It's a simple game with varying difficulties that can truly test anyones knowledge. So do you think you "Know It All"?

Optimizations

Currently the game grabs questions from a wide range of categories, but I would like to eventually add the funcionality to choose a speicfic category or to have it be completely shuffled.

Lessons Learned:

I learned how to shuffle arrays of items efficiently by utilizing the Fisher-Yates shuffle algorithm. This was necessary because the data was always retrived with the correct answer being the first choice so with this algorithm in place, I was able to shuffle all this data.

Examples:

Take a look at these couple examples that I have in my own portfolio:

NPS Passport Stamp Finder: https://github.com/Jaretzbalba/NPS-Passport-Stamp-Finder/blob/main/README.md

LA Astronomers Photo of the Day: https://github.com/Jaretzbalba/la-astronomers-society-api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published