busenah / triviagameproject Goto Github PK
View Code? Open in Web Editor NEWWDI28 Project I - to create a self-scoring trivia game on countries/States and their capitals
WDI28 Project I - to create a self-scoring trivia game on countries/States and their capitals
The way Github Pages deployment works, it does not recognize trivia.html
and so it only shows your readme In your deployed app
By convention, you want to call the core HTML file for your site index.html
, and breaking away from that convention does cause a serious issue in this case
Not an issue, but a compliment! Your CSS is very clean and well written, great job!
Lines 129 to 136 in 52f5311
It is hard to tell since I can't see the deployed app, but looking at your code I would expect that it works for the first question but then does not have a way to show the subsequent questions. If in your app you notice that bug, take a look at how you are using the arrays and how you are rendering information to the DOM
Lines 138 to 189 in 52f5311
Because the statesAndTheirCapitals
array already has the capitals of each state, this new array of just the answers adds a level of complexity to the app without any benefit that I can see. Since the property exists, and you are already using the statesAndTheirCapitals
array, you can and should use the capital
property for each state.
Line 14 in 52f5311
Since the array doesn't ever change, it is better to use const
over let
for the variable assignment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.