project-1's People
project-1's Issues
Notes for project 1
HTML Page
Line 10 in 8853f53
starting from the body tag pay close attention to how you are indenting. You want your code to be formatted properly as well. so all your elements should be inline with one another unless they are within them for example if you have an h1 within a div it wouldn't sit inline.
The content all looks fine and the id you present for each field is useful when figuring out what it will be referencing.
CSS Page
CSS page looks fine. The one thing I would encourage once again is the alignment. Your text editor should do the initial alignment for you. But I would also add a line of space in between each set of styling.
JS Page
There is obviously a bit more work to be done here. The first thing you can do is store your data differently. The first thing you can do is store your data into an array of Objects. Like you see below
var myQuestions = [
{
question: "What is ??? ",
correctAnswer: '......a......'
},
{
question: "What is ?",
correctAnswer: '......c.....'
}
];
This is one method you can play around with. This way you have your question data and the answer within the same object and they already correlate. then have a function that renders the question. Then continue with another function that brings in the users answer and compares it to the "correctAnswer". You have a lot of the functionality built out already. You have a function that is asking the question but you hard code in one particular question. But then it has to compare with another function that has a different data set.
I would also like to reiterate proper indentation on this page as well. It keeps things more organized and allows you to read the code more easily.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.