You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Video Playlist: https://www.youtube.com/playlist?list=PLB6wlEeCDJ5Yyh6P2N6Q_9JijB6v4UejF
Video Playlist: https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip
Build a Quiz App with HTML, CSS, and JavaScript to improve your Core Web Development
Expand All
@@ -26,9 +26,9 @@ In this course, we are going to use fundamental HTML, CSS, and JavaScript skills
@@ -38,9 +38,9 @@ I encourage you all to take a look at Emmet snippets for generating HTML and CSS
Resources
- [Emmet in Visual Studio Code](https://www.youtube.com/watch?v=5guZjNDcVnA)
- [Understanding REM Units](https://www.sitepoint.com/understanding-and-using-rem-units-in-css/)
- [A Complete Guide to Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
- [Emmet in Visual Studio Code](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [Understanding REM Units](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [A Complete Guide to Flexbox](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
## 2. Create and Style the Game Page
Expand All
@@ -52,29 +52,29 @@ In this video, we will load questions from a hard coded array and iterate throug
Resources
- [Creating Code Snippets in Visual Studio Code](https://www.youtube.com/watch?v=K3gLlZm-m_8)
- [Using Data Attributes](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes)
- [Creating Code Snippets in Visual Studio Code](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [Using Data Attributes](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [Document Get by ID](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [Triple vs Double Equals](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
## 5. Create Head's Up Display (HUD)
In this video, we will create a Heads Up Display (HUD) for our quiz app. This will display the user's score and current question number.
In this video, we will save and maintain a high scores array in Local Storage. To do this, we will need toJSON.stringify() andJSON.parse() to convert our high score array to a string and visa versa.
In this video, we will save and maintain a high scores array in Local Storage. To do this, we will need tohttps://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip() andhttps://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip() to convert our high score array to a string and visa versa.
## 9. Load and Display High Scores from Local Storage
In this video, we will create our High Scores page. We will have to load the high scores from Local Storage, iterate through them, and display them on the screen.
Resources
- [JSON Parse and Stringify](https://alligator.io/js/json-parse-stringify/)
- [JSON Parse and Stringify](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
## 10. Fetch API to Load Questions From Local JSON File
In this video, we will move our sample questions from a hard coded array to an external .json file. This will help clean up ourGame.js file and set ourselves up to request questions from an API in the next video.
In this video, we will move our sample questions from a hard coded array to an external .json file. This will help clean up ourhttps://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip file and set ourselves up to request questions from an API in the next video.
Resources
- [How to Use the Fetch API](https://scotch.io/tutorials/how-to-use-the-javascript-fetch-api-to-get-data)
- [How to Use the Fetch API](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [Array For Each](https://www.w3schools.com/jsref/jsref_foreach.asp)
- [How to Use the Fetch API](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
- [Array For Each](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
## 12. Create a Spinning Loader
In this video, we will create a simple spinning loader in CSS that will be displayed until we are finished requesting/loading questions from the API.
Resources
- [Create a CSS Loader](https://www.w3schools.com/howto/howto_css_loader.asp)
- [Create a CSS Loader](https://raw.githubusercontent.com/gayatrriiii/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript/master/psychostatics/Build-A-Quiz-App-With-HTML-CSS-and-JavaScript.zip)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.