GithubHelp home page GithubHelp logo

jamesqquick / build-a-quiz-app-with-html-css-and-javascript Goto Github PK

View Code? Open in Web Editor NEW
698.0 698.0 610.0 192 KB

Build a Quiz App with HTML, CSS, and JavaScript

License: MIT License

CSS 29.91% JavaScript 36.00% HTML 34.09%

build-a-quiz-app-with-html-css-and-javascript's Introduction

Hi My name is James Q Quick

Developer. Speaker. Teacher.

James is a JavaScript Developer, Speaker, and Teacher with a passion for teaching developers through content.Β He is a full-time Technical Content Creator with years of experience in Software Development and Developer Advocacy.

  • 🌍  I'm based in Memphis, TN
  • 🧠  I'm learning everything JavaScript
  • 🏑 My website
  • πŸ˜„ Pronouns: he/him
  • ⚑ Fun fact: I can solve a Rubik's cube in under a minute!

Shoutout to Brad Garropy for the inspiration!

Skills

JavaScript TypeScript HTML5 React NextJs CSS3 TailwindCSS Svelte NodeJS Express Figma

Socials


build-a-quiz-app-with-html-css-and-javascript's People

Contributors

jamesqquick avatar jayantdwivedi avatar krishna16sharma avatar lolyparty avatar thedamian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

build-a-quiz-app-with-html-css-and-javascript's Issues

Colons in folder names on Windows is not allowed. So when trying to clone this repo to a VS code running on windows it fails.

Colons in folder names on Windows is not allowed. So when trying to clone this repo to a VS code running on windows it fails.
...
Resolving deltas: 100% (75/75), done.
error: invalid path '4. Display Feedback for Correct:Incorrect Answers/app.css'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

localStorage highScores only storing one score after return to home

In the file: end.js we add window.location.assign("/"); at the very end to send the player back to the home screen. When this happens and I play through again and save a score, it only keeps the latest score.

Somewhere the highScore localStore is being reset but I can't find it. Any help here?

[DOCS] put deployed website link

It would be better if you included the demo of your website link of the app in the documentation as well as in the about repository details.

highscores are random

Up to the 12th one in end.js the score is a random math function and not the actual score.

const score = {
score: Math.floor(Math.random() * 100),
name: username.value

Display attempted quiz

Hey, πŸ‘‹
Kindly help me on how to display all the attempted quiz with the right answer after completing quiz.

Math.random code will only shuffle answer into first three containers

This was a really great tutorial series - easy to follow and quick to build!

I think I have found a small issue with the following code:

formattedQuestion.answer = Math.floor(Math.random() * 3) + 1;

Math.random() returns a value in the range [0,1), i.e. it will never return 1 - see source.

So it looks like the code will only return values of 1, 2 or 3. Never 4.

I think a simple fix is the following:
formattedQuestion.answer = Math.floor(Math.random() * 4) + 1;

availableQuestions

You have a typo in game.js. You have availableQuesions instead of availableQuestions.
On line 8, 45, 50, 55, 56, 64.

p.s. thanks for the tutorial!

Missing License

Hi,

we would like to create a webapp based on your tutorial using your code as a starting point. Unfortunately, you have not released your code under a specific license. Would you mind to do that so we know under which conditions we are allowed to reuse your code?

Fetch is not working as expected (2023)

PROBLEMS WITH FETCH

Below is your implementation of fetch -

fetch("questions.json")
  .then((response) => response.json())
  .then((data) => {
    questions = data;
    console.log(questions);
    start();  //<--problem
  })
  .catch((err) => {
    console.log(err);
  });

This piece of code returns an array of empty objects when start() is being called from then, image shown below
2023-02-28T14:11:34,247883883+05:30

If start() function is not called from then it magically somehow works, image shown below:
2023-02-28T14:10:09,460584215+05:30

P.S: I happen to be learning, javascript and web development in general and that is why I came across this playlist. So I cannot progress further to complete this app as I am stuck here.
Request you to provide a workaround as soon as possible :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.