Quiz App JavaScript with Timer | Multiple Choice in HTML, CSS & JavaScript

Поделиться
HTML-код
  • Опубликовано: 26 июл 2024
  • In this video, I'm revealing how to create a quiz app with a timer in JavaScript. This quiz app will let users choose from multiple questions and submit their answers automatically.
    Quiz apps are a great way to teach and test knowledge, and this JavaScript quiz app is no exception. By using HTML, CSS and JavaScript, you can create a beautiful and functional quiz app in no time! If you're looking to improve your JavaScript skills, then this video is for you!
    In this video, we're going to learn how to create a quiz using JavaScript with a timer. We'll also learn how to create a Multiple Choice quiz in HTML, CSS and JavaScript.
    This quiz app is perfect for educational purposes or for testing your knowledge. It's easy to create, and it uses JavaScript and HTML5 to create the layout and the questions. Best of all, it's free to download and use!
    In this video, we're going to create a simple quiz app with a timer. We'll be using HTML, CSS, and JavaScript to make the quiz app look professional and easy to use.
    Demo:
    myskypower.net/web-apps/Quiz-...
    Source Code:
    myskypower.net/web-apps/Quiz-...
    More APPS:
    myskypower.net/web-apps/
    00:00 - intro
    02:22 - Setup Project and HTML
    09:55 - CSS Styling
    31:33 - Questions.js
    33:44 - Script.js
    01:01:00 - Final
    Quiz app development is a great way to learn JavaScript, CSS, and HTML. By creating this quiz app, we'll learn how to create a user interface, add options to a quiz, and use JavaScript and CSS to style the quiz app. Make sure to watch the video to see how it's done!
    Learn to make BMI Calculator:
    • How to make BMI calcul...
    Find Location:
    • How to Find Location A...

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

  • @cliffe_rocker
    @cliffe_rocker 9 месяцев назад +1

    I just love his calm voice. Beautiful work. May Allah bless you

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

    This is a great little quiz app written in JavaScript, HTML and CSS. The app has a timer, so you can see how long it takes you to answer all the questions. There are multiple choice questions, so you can choose the answer you think is correct. The app is well coded and easy to understand. Amazing!

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

    Cool

  • @residanatoran3162
    @residanatoran3162 Год назад +2

    thanks for the video it's amazing

  • @kartikbissoyi3372
    @kartikbissoyi3372 Год назад +2

    ❤❤❤🙏🙏🙏🤠🤠

  • @VesrnTechnologies
    @VesrnTechnologies Месяц назад +1

    Sir how to add image to question?

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

    Hi, the app was responsive until i moved into the js script. I realized that my HTML scripts are not to responsive, what could be the issue? i am using visual studio. am i missing a setting ? i'd really appreciate your response. And thanks for this amazing tutorial.

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

    Thank you for the great video. What do you have to change so that you can mark multiple answers at the same time for a question? E.g. Question: Mark all ingredients of Coke: Water, sugar, metal, peas. Thanks for your effort.

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

      Your welcome, It's simple. Open up (questions.js) and add your second response as follows: answer2: "Hyper Text Multiple Language." Once you've done that, open up (script.js) and add the following to the function optionSelected(answer): let correcAns2 = questions[que_count].answer2; //obtaining the second correct response from the array) and modify the if clause as follows: if(userAns == correcAns || userAns == correcAns2).
      You can now choose from a variety of answers, so there you have it. :)

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

    Hi, Could you please tell me about this backend framework and where the answers will stored

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

      and how to connect end-to-end project example(A complete quiz application)

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

    If ever, I want to take the quiz again, how to randomize quesions ?

  • @chukwuemeka5757
    @chukwuemeka5757 10 месяцев назад

    Please how did you get ur 29 and 549 in the timeline.... Please i need a reply. Thanks

  • @mohamedkebaili8412
    @mohamedkebaili8412 Год назад +2

    Salam ali please how can i transform it to multiple choice quiz with many answers not only one ?

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

      It's simple. Open up (questions.js) and add your second response as follows: answer2: "Hyper Text Multiple Language." Once you've done that, open up (script.js) and add the following to the function optionSelected(answer): let correcAns2 = questions[que_count].answer2; //obtaining the second correct response from the array) and modify the if clause as follows: if(userAns == correcAns || userAns == correcAns2).
      You can now choose from a variety of answers, so there you have it.

  • @pawanachar4504
    @pawanachar4504 3 месяца назад

    Sir , your code is working fine but I need to add graph for the questions and time plz help me out

  • @stellachinonso-ani9533
    @stellachinonso-ani9533 6 месяцев назад

    Nice work, well done, please how can you help with an issue

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

    Please I want it to be in such a way that if the time reach it shouldn’t select the answer it should move on to the next question
    How should I do it???

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

    How to add total time instead of individual question?

  • @Bitupur4023
    @Bitupur4023 10 месяцев назад

    How to add picture quizzes please

  • @aldonataldo4073
    @aldonataldo4073 11 месяцев назад +1

    hey bro thx for tutorial, i have some question, how to sending Result (score) to Email? u can explain to me, thx before

    • @aliaslan4802
      @aliaslan4802  11 месяцев назад

      Thank you !
      You can do that with Node.js, there is a tutorial in my channel you can watch

  • @freshvlay1646
    @freshvlay1646 Год назад +2

    how can we make more than one answer right?

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

      It's simple. Open up (questions.js) and add your second response as follows: answer2: "Hyper Text Multiple Language." Once you've done that, open up (script.js) and add the following to the function optionSelected(answer): let correcAns2 = questions[que_count].answer2; //obtaining the second correct response from the array) and modify the if clause as follows: if(userAns == correcAns || userAns == correcAns2).
      You can now choose from a variety of answers, so there you have it.

  • @stellachinonso-ani9533
    @stellachinonso-ani9533 6 месяцев назад

    How can i make the time to be global

  • @mauricioguevara8423
    @mauricioguevara8423 Год назад +2

    How can I convert seconds to minutes?

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

      Hey dear if you want to change seconds to minute please check inside timer() function
      and add this part of code:
      if(time > 60){
      let addZero = timeCount.textContent;
      let minutes = Math.floor(time / 60);
      let extraSeconds = time % 60;
      timeCount.textContent = minutes + "min" + extraSeconds + "sec";
      }
      after you have done that put the amount of time you want inside timeValue and startTimer(VALUE HERE);

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

    plz bro how can we make more than one answer right ?

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

      It's simple. Open up (questions.js) and add your second response as follows: answer2: "Hyper Text Multiple Language." Once you've done that, open up (script.js) and add the following to the function optionSelected(answer): let correcAns2 = questions[que_count].answer2; //obtaining the second correct response from the array) and modify the if clause as follows: if(userAns == correcAns || userAns == correcAns2).
      You can now choose from a variety of answers, so there you have it.

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

      @@aliaslan4802 bro not working

  • @user-fn3tw1nj3e
    @user-fn3tw1nj3e 5 месяцев назад +1

    Salaam, I am having some trouble getting the next button to work its the only issue I am facing, could I send you my script.js file for you to have a look?

    • @aliaslan4802
      @aliaslan4802  4 месяца назад

      You can contact me by whatsapp (+93798872432)

  • @stevephoneguy
    @stevephoneguy 9 месяцев назад

    I seem to be having a problem with App. The continue button does nothing when clicked on. The Exit Quiz works but not the Continue. Not sure what i am missing.

    • @stevephoneguy
      @stevephoneguy 9 месяцев назад

      ok so i notice some code i missed but now when continue button is clicked on. I seem to be getting the same box that the Exit button shows. Not sure if i have the Question.js link in the correct file. Currently bot JS files are in the HTML file.

    • @hjonlinetv1743
      @hjonlinetv1743 2 месяца назад

      @@stevephoneguy may you help how to link the question and script file to HTML document sir

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

    i have issue pleasw help me

  • @bprodu1
    @bprodu1 5 месяцев назад +1

    Is this quiz open source? Anyone Can use it?

  • @and-learn
    @and-learn Год назад +1

    Your code mobile not friendly plz responsive make