How to Make a Quiz App using HTML CSS Javascript - Vanilla Javascript Project for Beginners Tutorial

Поделиться
HTML-код
  • Опубликовано: 27 июн 2020
  • Learn how to make a quiz app using HTML, CSS, and Javascript Tutorial. We will only use vanilla Javascript to create this project and it is for complete beginners.
    If you want to follow me along my coding journey, be sure to subscribe :)
    / @briandesign
    Check out my playlist to see my HTML, CSS, & Javascript Tutorials
    • How to Make a Website ...
    How to create a Navbar with HTML and CSS
    • How to Make a Responsi...
    Udacity Front end Developer Nanodegree
    • Udacity Front End Web ...

Комментарии • 253

  • @vikiink
    @vikiink 2 года назад +6

    I just started this tutorial! You are such an awesome tutor! Very clear, and informative on why you do the steps and perfect pace. Thank you so much for this tutorial!

  • @hervemalvina28
    @hervemalvina28 3 года назад +7

    Great video. Many thanks for your clear explanations of the javascript code

  • @PyrousVideos
    @PyrousVideos 3 года назад +3

    For any mobile users who are coding this change the min-height of the .choice-container to 1rem It worked for me

  • @BrandonGiordano
    @BrandonGiordano Год назад

    Thanks so much. Had to complete this project for school and you helped me all the way through

  • @mulumeh1
    @mulumeh1 3 года назад +3

    Thank you so much Brian. This is very helpful!

  • @matthewwalczak5321
    @matthewwalczak5321 7 месяцев назад

    Great tutorial! Learned some new things along the way such as the tag shortcuts! Thank you!

  • @jonathancohen1524
    @jonathancohen1524 2 года назад +1

    A great introduction to javascrpit helped me understand the concept so much better.

  • @md.anisurrahman9459
    @md.anisurrahman9459 2 года назад

    Amazing video tutorial. Thank you, Brian!

  • @snarlyash8590
    @snarlyash8590 2 года назад

    Thank you so much for this tutorial it was very helpful please make more of these videos ; )

  • @seid5378
    @seid5378 2 года назад

    Thank you so much for this tutorial. I needed this for my upcoming project and applying javascript was hurting my head

  • @esagecantu
    @esagecantu 3 года назад

    Great tutorial on how to make a trivia quiz. I will use it for my own trivia.

  • @rachaelfavouradebanwo6465
    @rachaelfavouradebanwo6465 Год назад

    Thanks a lot Brian. Really helpful :)

  • @rishaangupta131
    @rishaangupta131 Год назад

    Great Tutorial!! I learned a lot!!

  • @axarious5846
    @axarious5846 2 года назад +1

    Hey, thank you so much for helping me, but can you change the question into audio rather than text? I have trouble adding the function to play audio into the javascript, can someone help?

  • @CodeNameNoah
    @CodeNameNoah Год назад +1

    What extension do you use to see wrappers or start-end elements in different colors?

  • @yazidali7071
    @yazidali7071 3 года назад +1

    Thank you youtube for showing me this channel... this is amazing.

  • @arushibali7784
    @arushibali7784 3 года назад

    This was gr8 👏 but I wanted you to add a result button at the end to show the result.

  • @marijajorgacevic1083
    @marijajorgacevic1083 2 года назад +2

    Hi Brian, can you send a link with the codes to download because it tells me that max_questions is not defined

  • @madebymate4870
    @madebymate4870 2 года назад +7

    Thank you for this tutorial big man, javascript is pretty hard to learn but you explain it very well

  • @gladringideonaroul7662
    @gladringideonaroul7662 3 года назад +2

    Thank You soooooooooooo much ........... this was really cool and helpful ... !!!

    • @it__summaiyakhan250
      @it__summaiyakhan250 3 года назад

      But it not working at the same any hidden skill then kindly share

  • @petervanderlind
    @petervanderlind 2 года назад +1

    How can I change the div into a p tag the way he's doing? My visual studio isn't doing it automatically. Thanks.

  • @AsmaKhan-qf6gd
    @AsmaKhan-qf6gd Год назад

    Amazing Amazing sir you are super duper awesome
    thank you so much.

  • @tanayanaik6912
    @tanayanaik6912 3 года назад +1

    Does the scoreboard gets saved in a database or something ??? or its just a local storage

  • @liqvalen
    @liqvalen 3 года назад +1

    Thanks for the tutorial

  • @sakihikarujung
    @sakihikarujung 6 месяцев назад +1

    Do you have sheet and then make timer multiple choice with them instead of type problem and choices in the code.

  • @edwardkabwmba5381
    @edwardkabwmba5381 3 года назад +1

    liked and subscribed, i am doing some project and i need something quick and you good

  • @adityaamar3780
    @adityaamar3780 3 года назад

    hey, I need help with storing user choice in the quiz to google sheet or some place. How do I get this done?

  • @vincentyou7302
    @vincentyou7302 3 года назад +4

    Hey is there a way I can see your github code or something ?

  • @NotMash
    @NotMash 3 года назад +2

    hey i need help with 46:24 when he incrementScore.i get a syntax error

  • @-srishtirudra6670
    @-srishtirudra6670 3 года назад

    hello im making micro project on this topic sir so how link each pages means are u r ready on clickg next page how to do that plz help me out

  •  3 года назад +1

    hi guy, very helpful video, thanks for sharing

  • @khaleephauba5549
    @khaleephauba5549 3 года назад

    Great! Keep it up, How do I save the highscore to firebase and if user return and play again and also fill the form with the same username firebase will updated/increase his score and update his level in the table

  • @computergeek5657
    @computergeek5657 3 года назад

    Teacher…thank you so much.

  • @ActiveDailyClips
    @ActiveDailyClips 2 года назад +16

    Amazing video, but could you share the source code?

  • @tomsquad920
    @tomsquad920 Год назад +1

    Help. When I followed the tutorial up to 20.25 when he clicked play and a new screen showed up. When i try to click play the screen does not come up and it just says "your file couldnt be accessed". When I go into my folder it I can open game.html however they dont linktogether.

  • @yasmimbarbosa4839
    @yasmimbarbosa4839 3 года назад +1

    GREAT VIDEO! THANK YOU SO MUCH!!!

  • @thisisrocee
    @thisisrocee 3 года назад +1

    is there a chance that i can put a image in these questions? im talking seperate image for each question.
    plsssss anyyone?

  • @randhirgupta9518
    @randhirgupta9518 3 года назад +1

    Very helping tutorial appreciated Brian

  • @DevsLikeUs
    @DevsLikeUs 3 года назад

    Great video and app.

  • @The_Guarian_Angel
    @The_Guarian_Angel 3 года назад +1

    I need help
    I use the HTML code of your quiz but i have a problem.
    I have a question on my quiz but there is two right answer and i dont now how can i do it
    Thanks

  • @kiritsuna
    @kiritsuna 3 года назад

    I'm using 10 questions I took from a JSON, because doing it on the js file would have been a lot of text. The problem is that I don't know how to link with Jquery AJAX, or other way, while changing only a little of the original code in your video

  • @akiayoung9807
    @akiayoung9807 3 года назад

    Hi there is there a way to make it to some questions only have two or three answers?

  • @goodcoder4953
    @goodcoder4953 3 года назад

    Awesome Work

  • @MsLuizdaniel
    @MsLuizdaniel 3 года назад +3

    Mano, você salvou meu TCC

    • @tigervieh
      @tigervieh 2 года назад

      você conseguiu? estou com um erro que não consigo resolver: Uncaught TypeError: Cannot set properties of null (setting 'innerText') , na linha 75 do game.js/ poderia me ajudar?

  • @yorgoelmoubayed3821
    @yorgoelmoubayed3821 3 года назад

    Hey, great tutorial thank you!
    Quick question, any ideas of how to add one or more images per question.
    Thanks for any help!

  • @eliabospino6475
    @eliabospino6475 3 года назад

    Hi, Brian. I have a doubt. I did a lot of testing and now I have a lot of names on the scoreboard. How do I remove or reset them? Please, I need help, man.

  • @TamasKoncz
    @TamasKoncz 3 года назад

    How can I import the question answers to a google sheets table? pls help mee

  • @nekojcovek8466
    @nekojcovek8466 3 года назад +14

    This guy has such a good taste for colors

    • @MenyeMC
      @MenyeMC 3 года назад

      Good point, and fonts too. The choices he makes just "work" together. He knows what he likes and what he likes is good.

  • @joshualouisehonrado5269
    @joshualouisehonrado5269 3 года назад +1

    for me as a college student this is a great tutorial! thankyou for this wonderful tutorial!!!! i learn a lot

  • @salahaddin2009
    @salahaddin2009 3 года назад +4

    Hi how do I plot the quiz score on a graph so I can see overtime how I am performing in order to measure my learning goals?

    • @MrDuff158
      @MrDuff158 3 года назад

      Hey! Also interested in this did you figure it out?

    • @canvasnature3282
      @canvasnature3282 2 года назад

      You use a library get all the data you want to fetch and display them using Chart.js

  • @souzamotasacul
    @souzamotasacul 3 года назад +4

    Hi Brian! How's it going?
    At 25:17 you said "Transition" but you typed "Transform"
    Thanks you for the content it is helping a lot! Keep it up!

  • @AzureX.official
    @AzureX.official 2 года назад

    hey what theme are u using by the way?

  • @barnojamalova7856
    @barnojamalova7856 3 года назад +2

    Thanks it was helpful, but what if i want to put the buttons back and forward for the quiz.

    • @SandeshMotoVlogs
      @SandeshMotoVlogs 2 года назад +1

      Keep a question counter
      Everytime u click left button decrement it by one and when u click right button increment it by one

  • @beautifulmorning5027
    @beautifulmorning5027 2 года назад

    How can I add images in the choices instead of text ?

  • @nutbutterntoejam2566
    @nutbutterntoejam2566 2 года назад

    Why is it that my first :root for style.css file is not working already? the background colour is not changing. Im using Brackets text editor. anyone can help?

  • @jedgomez1585
    @jedgomez1585 Год назад

    hello can i ask where the data is saving in leader board?

  • @Italy_paddathulu
    @Italy_paddathulu 3 года назад

    On which website you are working on it please tell

  • @Truck_Kun69
    @Truck_Kun69 3 года назад +1

    thanku bro

  • @j4n1s16
    @j4n1s16 3 года назад +1

    how do i create multiple right answers?
    something like:
    question: 'What is 2+2?',
    choice1: '22',
    choice2: '4',
    choice3: '21',
    choice4: '4',
    answer: 2, 4,

  • @williamlocke5059
    @williamlocke5059 2 года назад

    What is the advantage to using the arrow function notation versus the traditional method?

    • @xheladinosmanaj3873
      @xheladinosmanaj3873 Год назад

      it's more simple way of creating a function instead of creating it and putting it as a callback you create it directly there

  • @rekaiadraoui4060
    @rekaiadraoui4060 Год назад

    BTZ JS is space sensitive so if your js code isnt running check if you have any extra spaces

  • @vuquang4071
    @vuquang4071 3 года назад +1

    What software do you use?

  • @sarangthakre
    @sarangthakre 3 года назад

    How to add img tag and where please tell

  • @lonthroop
    @lonthroop 2 года назад +1

    Thanks for doing this. I learned a lot. However, I couldn't get it to iterate through different questions; just stays on the first question. I also get an error around line 115 of game.js selectedChoice.parentElement.classlist.add(classToApply); game.js:115
    Uncaught TypeError: Cannot read properties of undefined (reading 'add')
    at HTMLParagraphElement. (game.js:115)

  • @julianabz
    @julianabz 3 года назад

    sorry, i'm very noob, but how can i create a 'explanation page' after the user select a answer? sorry my english and thank for the video!!

  • @amittio6446
    @amittio6446 3 года назад +1

    how can i get the full script

  • @officialerenince
    @officialerenince 3 года назад +3

    How can i delete someones high-score?

  • @kendallpinto
    @kendallpinto 2 года назад

    Hi Brain.. I would like to make it responsive for mobile too.

  • @Djolicc
    @Djolicc 2 года назад

    Hey, hopefully somebody is going to see this. But like my problem is, the page after the game does not wanna show up. After completing the questions, it says "YOUR FILE COULDN'T BE ACCESSED. May somebody help me out with this? :)
    Also, GREAT VIDEO, loved watching it and using it.

  • @handsomeman5098
    @handsomeman5098 3 года назад

    Love it

  • @fabdan5745
    @fabdan5745 3 года назад +1

    @Brian thanks for the tut. I completed it, but none of my questions and answers are uploading nor is the rest working. Although I "carefully" followed along the Js part. Any help?

    • @didisimmons3177
      @didisimmons3177 2 года назад +1

      Hi @Fabrice Dan having the same issue the questions are not showing if the are answers correct or incorrect when clicked .Were you able to resolve it? if yes how , I have followed the video carefully but showing the error on the console "score value has been declared which is exactly the same as the video ".

    • @kendallpinto
      @kendallpinto 2 года назад

      @@didisimmons3177 You can view his github and figure out the error.

  • @ArunkumarJewaragi
    @ArunkumarJewaragi 3 года назад

    When I go to container designing it is not working brother

  • @simon6325
    @simon6325 3 года назад +1

    thank you

  • @iamrafa3619
    @iamrafa3619 3 года назад

    hey, what extensions you running on vs code ?

    • @briandesign
      @briandesign  3 года назад

      ruclips.net/video/0Ok3fGel4Ok/видео.html check this video I made

  • @kvrrcfatehgarhlibrary6812
    @kvrrcfatehgarhlibrary6812 2 года назад

    How to combine these all html ,css and js file

  • @scriptnoob134
    @scriptnoob134 3 года назад +1

    This is really amazing!! Can I use this on the site I'm making?

  • @inhnam9089
    @inhnam9089 2 года назад +1

    that great, but how to do it using React?

  • @miss_nougat.x473
    @miss_nougat.x473 2 года назад

    i got stuck at the start! when it says to type index.htm nothing happens ! what do I do

  • @randalfjohn9848
    @randalfjohn9848 2 года назад

    When the wrong answer is selected and red colour appears, how do you also show green colour on the correct answer at the same time.

  • @abdulrahmanmurad8377
    @abdulrahmanmurad8377 3 года назад

    good job

  • @mrj3514
    @mrj3514 2 года назад

    I would like to put timer in it? how?

  • @davidl8000
    @davidl8000 2 года назад

    Thank you

  • @nikkoletashby1142
    @nikkoletashby1142 2 года назад

    Question: If you wanted to reset the scoreboard at the click of a button, how would you go about doing that?

    • @rutasverdesena2037
      @rutasverdesena2037 Год назад

      resetScore = e => {

      window.localStorage.clear('highScores');
      }

  • @orsasson9592
    @orsasson9592 3 года назад +1

    Is that a responsive quiz?

  • @Wonkanator2
    @Wonkanator2 2 года назад

    everything works but everytime I save a new highscore it doesn't add anymore to the list it just replaced the highscore with the latest score....

  • @theklippet
    @theklippet Год назад

    How do you make a similar quiz app with different results just like a Buzzfeed quiz?

  • @it__summaiyakhan250
    @it__summaiyakhan250 3 года назад +1

    Thanks I found this
    But but should zoom screen

  • @robertocetzalalvarez8607
    @robertocetzalalvarez8607 Год назад

    there is no link of the repository on github?

  • @bonkers1991
    @bonkers1991 2 года назад

    Hello! How to do a multiple correct answers for this multiple choice QUIZ??? NEED HELP... PLEASE *CRY*

  • @pxdboyz
    @pxdboyz 2 года назад

    can anyone tell me how to put picture inside the button?

  • @TimmyOnTech
    @TimmyOnTech Год назад

    is the repo for this project anywhere?

  • @rutasverdesena2037
    @rutasverdesena2037 Год назад

    The progressbar doesn't work for me. Anybody could make it work? how did you do it?

  • @GameplayVideoRO
    @GameplayVideoRO 3 года назад +4

    How can I delete the highscores from the leaderboard? Or maybe reset it?

  • @ProphaseAcademyLectures
    @ProphaseAcademyLectures 2 года назад

    Thanks for the tutorial,can you help with the source code

  • @RandomGamesVault
    @RandomGamesVault 3 года назад

    hey bro, how do you make the questions appear in an order? I used your code but the same questions sometimes appear. Like duplicate questions

  • @soumyaaaaaaaaaaaaaa7445
    @soumyaaaaaaaaaaaaaa7445 3 года назад

    where can i got code for this

  • @kiwicrafter
    @kiwicrafter 3 года назад +1

    Hi Brian, any chance to download the entire code?
    Also if I am asking about an object, how can I add a small image?
    Any way I can communicate by email?

    • @briandesign
      @briandesign  3 года назад

      the github should be in the comments section

    • @kiwicrafter
      @kiwicrafter 3 года назад

      @@briandesign Thanks, I have another question, where are the scores filed? How do I delete them? Or manipulate them?
      I am setting up a quizz with a donated prize to be drawn, and while working on it I entered a lot of test scores.
      There will be hundreds or thousands of entries for the draw.
      So how can I delete the test entries?

    • @amittio6446
      @amittio6446 3 года назад

      did you found the github with is whole script?

    • @amaniarman460
      @amaniarman460 3 года назад +1

      @@amittio6446 github.com/briancodex/quiz-app-js

  • @manhark7078
    @manhark7078 3 года назад +6

    How do I put the final score on the end page? Like 100 or 200(whatever the person got)?

    • @KeelanJon
      @KeelanJon 3 года назад

      The player score is saved to local storage when Brian uses the localStorage.setItem("mostRecentScore", score) method. You can get anything saved to local storage using localStorage.getItem("variableName");

    • @kerbyvalenzuela4210
      @kerbyvalenzuela4210 3 года назад

      @@KeelanJon Man how do I save it to a database?

    • @KeelanJon
      @KeelanJon 3 года назад

      @@kerbyvalenzuela4210 That depends on the back end you are using

    • @kerbyvalenzuela4210
      @kerbyvalenzuela4210 3 года назад +1

      @@KeelanJon I feel stupid for asking this but what's a back end?

    • @kerbyvalenzuela4210
      @kerbyvalenzuela4210 3 года назад

      @Yusuf Bey Thanks for that, Sir! 💗

  • @CHARlie-vx1re
    @CHARlie-vx1re 2 года назад

    hi brian can you share the source code because i m getting a error

  • @zulhelmeroslan8019
    @zulhelmeroslan8019 Год назад

    Can someone help me how to make CRUD in the quiz project??