• Stars
    star
    697
  • Rank 64,937 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build a Quiz App with HTML, CSS, and JavaScript

Build a Quiz App with HTML, CSS, and JavaScript

Home Screen

Video Playlist: https://www.youtube.com/playlist?list=PLB6wlEeCDJ5Yyh6P2N6Q_9JijB6v4UejF

Build a Quiz App with HTML, CSS, and JavaScript to improve your Core Web Development

If you have questions, please ask them in the Learn Build Teach Discord.

Want to improve your core Web Develoment skills? Want to improve your knowledge of HTML, CSS, and JavaScript? In this course, you're going to learn how to build a Quiz application without the assistance of libraries or frameworks. Here are some of the topic we will cover!

  • Save high scores in Local Storage

  • Create a progress bar

  • Create a spinning loader icon

  • Dynamically generate HTML in JavaScript

  • Fetch trivia questions from Open Trivia DB API

  • JavaScript - Array Functions (splice, map, sort), Local Storage, Fetch API

  • ES6 JavaScript Features - Arrow Functions, the Spread Operator, Const and Let, Template Literals

  • CSS - Flexbox, Animtations, and REM units

Course Intro and Resources

Welcome to "Build a Quiz App with HTML, CSS, and JS". I'm so excited you decided to take the initiative to improve your core Web Development skills!

In this course, we are going to use fundamental HTML, CSS, and JavaScript skills to build a quiz application. This application will be able to load questions from a 3rd party API, track and display high scores, and so much more! You'll learn how to use Local Storage, create animations, use modern ES6 JavaScript features, and more.

Resources

1. Create and Style the Home Page

In this video, we are going to create the home page along with a good chunk of the necessary CSS. The home page will consist of a few links for the Game and High Scores pages. We will also create helper CSS classes for Flexbox, buttons, and hiding elements.

I encourage you all to take a look at Emmet snippets for generating HTML and CSS.

Resources

2. Create and Style the Game Page

In this video, we will create the Game Page and display static question and answer information. Eventually, we will load questions from an API, but for now, we will hard code one question so to establish styling.

3. Display Hard Coded Question and Answers

In this video, we will load questions from a hard coded array and iterate through available questions as the user answers them. We will use custom data attributes, the ES6 spread operator, and JavaScript arrow functions.

Resources

4. Display Feedback for Correct/Incorrect Answers

In this video, we check the user's answer for correctness and display feedback to the user before loading the next question.

Resources

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.

Resources

6. Create a Progress Bar

In this video, we will take our HUD one step further by creating a visual progress bar to track the user's progress through the questions.

7. Create and Style the End Page

In this video, we will create our End page where we will display the user's achieved score. This screen will provide a form for saving the score and links for playing again or going home.

Resources

8. Save High Scores in Local Storage

In this video, we will save and maintain a high scores array in Local Storage. To do this, we will need to JSON.stringify() and JSON.parse() to convert our high score array to a string and visa versa.

Resources

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

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 our Game.js file and set ourselves up to request questions from an API in the next video.

Resources

11. Fetch API to Load Questions from Open Trivia API

In this video, we will use Fetch to request a list of questions from the Open Trivia DB API.

Reources

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

13. Closing

Thank you so much for going through this course. I truly hope that you enjoyed it and that you have improved your core Web Development skills!!

More Repositories

1

javascript-array-functions-practice

JavaScript
206
star
2

markdown-worksheet

135
star
3

Learn-VS-Code

Learn everything you need to know about the most popular editor in Web Development
102
star
4

Authenticated-Todo-App-with-NextJS-Airtable-and-Auth0

Authenticated Todo App with NextJS and Auth0
JavaScript
95
star
5

read-me-template

This is a template to be used when creating ReadMe files for your Github repositories.
88
star
6

Design-and-Build-a-Chat-Application-with-Socket.io

In this mini series we are going to Design and Build a chat application using Socket.io. We will first discuss basic design concepts while exploring the design for this application in Sketch. We will then move on to laying out our application in HTML and CSS, and lastly, will add Javascript to complete the functionality. Along the way, we are going to use modern Web Development technologies and features such as Flexbox, CSS Variables, ES6 Arrow Functions, ES6 Map, Let and Const variables, Node.js, Express.js, and Socket.io.
CSS
86
star
7

svelte-kit-pokedex

Pokedex using SvelteKit
Svelte
83
star
8

astro-course-demo

Astro
82
star
9

Build-a-Quiz-App-with-React-and-Firebase

Quiz application built with React and using Firebase for storing/retrieving high scores!
JavaScript
80
star
10

cloudinary-react-and-node

JavaScript
73
star
11

React-and-Serverless-Fullstack-Web-Development

Learn how to build and secure a production-ready fullstack application from start to finish.
JavaScript
55
star
12

auth0-react-workshop

Code for Auth0 workshop on the React SDK.
JavaScript
53
star
13

React-With-Smooth-Scrolling

React application that uses the react-scroll package to implement Smooth Scrolling
JavaScript
53
star
14

Build-a-JAMstack-Course-Tracker-with-React-Serverless-and-Airtable

JavaScript
44
star
15

jamesqquick-site

Personal site for James Q Quick (me!)
Astro
43
star
16

svelte-kit-supabase-todo-app-with-tailwind

SvelteKit Todo App with Tailwind
Svelte
42
star
17

nextjs-crash-course-fauna-auth0-swr-react-hook-form-tailwind

JavaScript
41
star
18

JAMstack-Crash-Course-Build-a-Fullstack-App-with-React-Serverless-and-FaunaDB

JavaScript
34
star
19

jqq-util-functions

JavaScript
27
star
20

Core-Fundamentals-of-Web-Development

CSS
27
star
21

Construct-2

Construct 2
24
star
22

harry-potter-api-with-dynamo-db-node-express

Harry Potter API with Nodejs, Expressjs, and Dynamo DB
JavaScript
24
star
23

emmet-html-snippets-cheatsheet

This is a cheatsheet/worksheet for using Emmet HTML snippets.
22
star
24

dev-desks

JavaScript
22
star
25

nextjs-pokedex-with-tailwind-css

JavaScript
20
star
26

TalkTrack

A fun project for speakers looking to track their talks and get feedback from attendees
JavaScript
20
star
27

Win10Universal

This repository will include sample projects in C#/XAML for the Windows 10 platform, spanning phone, tablet, desktop, Xbox, and HoloLens!
PowerShell
18
star
28

nodejs-api-with-rapidapi-typescript-xata

TypeScript
17
star
29

Web-Development-Essentials-Extension-Pack

This an extension pack for Visual Studio Code with extensions that are extremely helpful for Web Developers!
17
star
30

node-express-planetscale-and-harry-potter

Node Express API with Harry Potter data using PlanetScale
Shell
15
star
31

Learn-Build-Teach-Site

Website for the Learn.Build.Teach. platform!
JavaScript
14
star
32

Quick-Chat-Bot

JavaScript
14
star
33

sveltekit-wordle-clone

Wordle clone using SvelteKit and Tailwind CSS
JavaScript
13
star
34

Web-Boilerplate-VSCE

This extension allows you to generate index.html, app.css, and app.js files for a starter web application. The html links to the css and js files appropriately, so you are ready to start developing!
JavaScript
13
star
35

link-shortener-sveltekit-directus

Link shortener app with SvelteKit and Directus
TypeScript
13
star
36

nextjs-multi-page-form-nextjs

TypeScript
12
star
37

throne-of-glass-api

Node/Express API for Throne of Glass using TypeScript and PlanetScale
TypeScript
10
star
38

James-Q-Quick-Twitch-Bot

JavaScript
10
star
39

Getting-Started-with-CSS-Grid-by-Example

Collection of getting started examples for using CSS Grid
HTML
9
star
40

React-Movie-Search

This is an app where you can search movies
JavaScript
9
star
41

nextjs-form-validation

TypeScript
9
star
42

Build-a-Typing-Game-with-HTML-CSS-and-JavaScript

JavaScript
8
star
43

nextjs-throne-of-glass-api

Serverless API for Throne of Glass Characters
TypeScript
8
star
44

Python-Class-Creator-Extension

VS Code extension for creating Python classes
JavaScript
7
star
45

netlify-clone-with-nextjs-prismicio

This is a demo clone of Netlify homepage
JavaScript
7
star
46

javascript-memory-match

Pokemon memory match game with JavaScript
JavaScript
6
star
47

jqq-meme-competition

Meme competition for James Q Quick freezeframes
HTML
6
star
48

jwt-twitch-giveaway-bot

JavaScript
6
star
49

QuickDev

Samples from Quick Dev, a series to save the developer time!
Assembly
6
star
50

youtube-for-developers

JavaScript
6
star
51

jamesqquick

This is the personal profile readme for....well, me!
5
star
52

Web-Development-Examples-From-Scratch

This repo consists of individual pieces of web applications that are built from scratch. No bootstrap, no libraries.
HTML
5
star
53

JWT-Giveaway

JavaScript
5
star
54

astrocourse.dev

Astro
5
star
55

Json-to-C2-Array

This is a Construct 2 plugin used to convert a raw JSON array to a JSON string that is readable by a Construct 2 Array
JavaScript
5
star
56

VS-Code-Snippet-Generator

JavaScript
5
star
57

js-challenges-site

The landing page for my JavaScript Challenges mini-courses
HTML
5
star
58

jamesqquick-biz-card

JavaScript
5
star
59

jamesqquick-sanity

Sanity Dashboard for JamesQQuick site
JavaScript
5
star
60

Gaming-in-the-Cloud

Game Development with Construct and Windows Azure
4
star
61

Stripe-and-Netlify

JavaScript
4
star
62

sveltekit-wand-generator

A wand generator built with SvelteKit
JavaScript
4
star
63

nextjs-planetscale-starter

TypeScript
4
star
64

API-Fake

JavaScript
4
star
65

vanilla-javascript-event-calendar-with-storyblok

JavaScript
4
star
66

lighten-darken-color-tool

This app will allow users to lighten and darken a color.
JavaScript
4
star
67

jqq-memes-nextjs-cloudinary-appwrite

JQQ meme generator with Nextjs, Cloudinary, and Appwrite
TypeScript
4
star
68

UWP-Azure-Custom-Login

This is a UWP example that works with an Azure Mobile App backend that provides login, signup, and user update functionality via the AzureCustomUserHelper class
C#
4
star
69

email-verification-nextjs-resend-xata-prisma

Email confirmation workflow using Next.js, Resend, Xata, and Prisma
TypeScript
3
star
70

sanity-gatsby-blog

Blog with Gatsby - Demo
JavaScript
3
star
71

Attendee-Tracker

Full-stack application to track attendees for events.
JavaScript
3
star
72

nextjs-planetscale-starter-2

TypeScript
3
star
73

mischief-managed-auth0-and-react

Harry Potter themed demo using auth0 for authentication in react!
JavaScript
3
star
74

jqq-meme

JavaScript
3
star
75

serverless-speaker-feedback-app

TypeScript
3
star
76

Youtubers

3
star
77

split-clip

TypeScript
3
star
78

javascript-local-storage-youtube-gallery

CSS
3
star
79

Attendee-Tracker-GUI

GUI for the Attendee Tracker Application
JavaScript
3
star
80

jqq-stream-utils

Stream bot utilities for James Q Quick live streams
JavaScript
3
star
81

CSS-Essentials-Extension-Pack

This an extension pack for Visual Studio Code with extensions that are extremely helpful when working with CSS!
3
star
82

compressed-nodejs

Nodejs backend for Compressed.fm podcast
TypeScript
3
star
83

netlify-lambda-hello-world

Sample gatsby app to show a hello world Lambda Function to be hosted in Netlify
CSS
3
star
84

netlify-auth0-rbac-integration-demo

JavaScript
3
star
85

nextjs-app-router-crash-course-demo

TypeScript
2
star
86

UWP-Adaptive-UI-Demos

5 UWP Adaptive UI Demos - Hamburger Button, SplitView, Adaptive Triggers, Adaptive triggers with SplitView, Relative Panel with Adaptive Triggers
C#
2
star
87

UWP-Friends-List

UWP sample that uses Azure Mobile Apps to allow a user to login/signup, view their friends, and add or remove friends
C#
2
star
88

web-app_nextjs_javascript_retail

JavaScript
2
star
89

UWP-Azure-Authenticated-ToDo

ToDoList Sample that allows a user to login and pull up his/her own ToDoItems.
C#
2
star
90

jqq-youtube-links-extension

JavaScript
2
star
91

react-expensify

Same application from The Complete React Developers Course
JavaScript
2
star
92

React-Login-Validated-Form

React application with a login form that displays validation feedback to the user
JavaScript
2
star
93

jamesqquick.github.io

Github Pages Test
JavaScript
2
star
94

Pig-Latin-Creator

Simple Pig Latin creator applications with HTML, CSS, and JS
JavaScript
2
star
95

potluck-pal

TypeScript
2
star
96

React-Firebase-Boilerplate

Boilerplate React app using Firebase for Auth and DB
JavaScript
2
star
97

Conference-Talks

A list of talks I am currently submitting or have submitted for CFPs!
1
star
98

jamstakctest

JavaScript
1
star
99

dev-yearbook

CSS
1
star
100

netlify-gatsby-deploy

Demo gatsby site to deploy to netlify
CSS
1
star