Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
API Quiz Game JavaScript Project Google SpreadSheet Data
Rating: 4.5 out of 5(9 ratings)
1,505 students

API Quiz Game JavaScript Project Google SpreadSheet Data

Explore how to connect to a Google Sheet Data JSON feed and use the data to create a dynamic web quiz game application
Created byLaurence Svekis
Last updated 11/2024
English

What you'll learn

  • How to connect to a web api
  • How to use JavaScript DOM to create page elements
  • Loop through JSON data
  • Explore Google Web App data from spreadsheet

Course content

2 sections26 lectures1h 20m total length
  • Introduction Dynamic Quiz Introduction2:46

    Develop a dynamic JavaScript quiz app that reads data from a Google spreadsheet and renders an interactive web app with randomized options and a final score.

  • Web development environment Setup3:38
  • Project Setup HTML and CSS3:26

    Create a new index.html file and link it to style.css and script.js. Set up a message area, a question area, and a next button, then preview and style the page.

  • Source Code HTML0:12
  • JavaScript Select Page Elements4:10
  • Source Code JS0:04
  • Get JSON data Request spreadsheet data.5:04
  • JavaScript Elements Create Question8:09

    Create quiz question element in JavaScript, render options, and wire next button. Use global game object to track progress, show question out of total, and handle clicks to reveal answer.

  • Source Code JS0:21
  • Check Answer Next Question3:26
  • Source Code JS0:29
  • Bug Fixes Updates to Game.5:44
  • Random Order Array2:21

    Randomize the order of quiz options with a reusable arrayRandom function that sorts the input using 0.5 minus Math.random, ensuring different option order on each load.

  • Source Code JS0:39
  • Make it look Nice CSS4:17
  • Source Code CSS0:12
  • Get Google Web App Data8:02
  • Google Script Source0:05
  • Google Web App Data 26:16
  • Google Script Source Code0:25
  • Updated IDE output Sheet data to JSON web app URL8:09
  • source Code New IDE0:09
  • Dynamic Quiz Conclusion5:58

Requirements

  • JavaScript HTML and CSS
  • Computer access and internet
  • Programming experience

Description

Explore how to connect to a Google Sheet Data as a JSON feed and use the data to create a dynamic web quiz game application

Welcome to the course that will show you how you can apply JavaScript to connect to a web API - get JSON data and build a JavaScript Quiz game from scratch using the data coming from a Google Spreadsheet.  As a bonus the course will also show you how you can setup your own spreadsheet webapp using Google Script so that you can customize the content and have your very own version of the questions in your application.

YOU MUST HAVE JAVASCRIPT EXPERIENCE FOR THIS COURSE. 

Source code is included - please try the code as you work through the lessons.

Course Covers applying JavaScript code

  • How to setup the basic Project shell with HTML and CSS

  • How to use JavaScript query selector to select page elements as JavaScript objects

  • Use fetch to connect to the web app URL for data source

  • JSON data and how to prepare it in JavaScript

  • Creating a function to display data content in the web application

  • Logic to approach game design and building of the web application

  • Next steps for player and using Game data

  • Debugging and advancing game design

  • Apply styling for a better looking game

  • Conclude the game quiz - make it dynamic so driven by the JSON data and flexible to change as the data changes.

  • Create a Google Script web app using Google Spreadsheet data

  • Structure JSON from an array object

  • Connecting sheet data to your web application

Enjoy learning have fun!!!!

Try the code for yourself and explore what you can do with JavaScript

Fast Friendly support to help answer any questions you might have and to help clarify content is always available in the Q&A section.  Taught by an instructor with over 20 years real world experience ready to help you learn more.  Step by step training resources and source code is also included to get you started quickly.


Who this course is for:

  • Web developers
  • Web master
  • Anyone who wants to practice JavaScript with API connection