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...
I just love his calm voice. Beautiful work. May Allah bless you
Thank you :)
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!
Cool
thanks for the video it's amazing
Thank you
❤❤❤🙏🙏🙏🤠🤠
Sir how to add image to question?
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.
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.
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. :)
Hi, Could you please tell me about this backend framework and where the answers will stored
and how to connect end-to-end project example(A complete quiz application)
If ever, I want to take the quiz again, how to randomize quesions ?
Please how did you get ur 29 and 549 in the timeline.... Please i need a reply. Thanks
Salam ali please how can i transform it to multiple choice quiz with many answers not only one ?
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.
Sir , your code is working fine but I need to add graph for the questions and time plz help me out
Nice work, well done, please how can you help with an issue
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???
How to add total time instead of individual question?
How to add picture quizzes please
hey bro thx for tutorial, i have some question, how to sending Result (score) to Email? u can explain to me, thx before
Thank you !
You can do that with Node.js, there is a tutorial in my channel you can watch
how can we make more than one answer right?
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.
How can i make the time to be global
How can I convert seconds to minutes?
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);
plz bro how can we make more than one answer right ?
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.
@@aliaslan4802 bro not working
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?
You can contact me by whatsapp (+93798872432)
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.
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.
@@stevephoneguy may you help how to link the question and script file to HTML document sir
i have issue pleasw help me
Sure, How can i help you ?
Is this quiz open source? Anyone Can use it?
Yes its
Your code mobile not friendly plz responsive make
ok