How To Make Quiz App Using JavaScript | Build Quiz App With HTML CSS & JavaScript

  Рет қаралды 494,085

GreatStack

GreatStack

Күн бұрын

Пікірлер: 478
@GreatStackDev
@GreatStackDev 2 ай бұрын
👉 My JavaScript Advanced Course: greatstack.dev/go/javascript-course (75% Discount)
@balloney2175
@balloney2175 Жыл бұрын
Avinash is a true programmer. He knows well every corner of Javascript. Kudos!
@deepakwaghmare3406
@deepakwaghmare3406 3 ай бұрын
That 30 javascript projects helps a lot
@pankajmandal7204
@pankajmandal7204 3 ай бұрын
i completed three projects from this playlist projects are good but please its a request to please also explain the javascript code properly it will be great if you explain in detail for javascript codes because it gets hard for freshers
@taheershaikh9184
@taheershaikh9184 Ай бұрын
true what's the point of just coding
@babarshabbir2554
@babarshabbir2554 6 ай бұрын
"Excellent tutorial! Clear instructions for building a quiz app with HTML, CSS, and JavaScript. Highly recommended."
@ankitpradhan2499
@ankitpradhan2499 6 ай бұрын
Is the code working or not...like if i coded along the video ??
@RayquanRogers
@RayquanRogers 2 ай бұрын
What’s the quotes for? I’m assuming it didn’t work for you?
@jengainavyotakiwa
@jengainavyotakiwa Жыл бұрын
You are a teacher, your code is clear, your way of teaching is making us easy understand the codes.
@xMahesh
@xMahesh Жыл бұрын
Bro I need this code
@knowledgebook7809
@knowledgebook7809 Жыл бұрын
Can't explain how far you have helped me......!! Even chatGPT was not able to solve my problem but you did....!!
@AibekJustForStudy
@AibekJustForStudy 7 ай бұрын
What was the problem?
@knowledgebook7809
@knowledgebook7809 7 ай бұрын
@@AibekJustForStudy Thanks for asking but I don't remember right now because I posted this comment 1 year back 😅
@sbndBhanu546
@sbndBhanu546 4 ай бұрын
please also tell how to put timer for each question, atlast how to put a pie chart which notices how many are correct in green and wrong as red Please provide tutorials
@VideosViraisVirais-dc7nx
@VideosViraisVirais-dc7nx 3 ай бұрын
The video has 30 minutes, But it took me 2 hours to complete. No errors or bugs ...
@GreatStackDev
@GreatStackDev 3 ай бұрын
That's okay. It take time to complete. Keep learning.
@Ankitp8
@Ankitp8 27 күн бұрын
Can you give me Source code please?
@RadwanBenmoussa-n6t
@RadwanBenmoussa-n6t 15 күн бұрын
It took me 2 day and I'm not finished .I don't know but I think he made it hard in the code
@rudythorns8411
@rudythorns8411 Жыл бұрын
this video struck an idea for me I am going to use a quiz and trivia page based on my own niche and maybe make money out of it --ill go ahead and consider making my own quiz app soon tnks
@spideygaming5103
@spideygaming5103 Жыл бұрын
I don't know how to thank this guy ❤ Next level ! easiest explanation .... if you are a beginner and want to enhance your skillset on JS follow this guy man
@efuentesjr
@efuentesjr 6 ай бұрын
It'd be nice if this had (1.) Questions number limit, meaning if I have 100 questions end each session at 50 and (2.) shuffle questions function... Other than that AWESOME training video! Thanks.
@isamsvideoediting4572
@isamsvideoediting4572 Жыл бұрын
Avinash, You are a hero. You make coding very easy for me to learn. Thank you.
@deepakwaghmare3406
@deepakwaghmare3406 3 ай бұрын
Avinash jii javascript series op
@babarshabbir2554
@babarshabbir2554 6 ай бұрын
"Excellent quiz app tutorial! Clear explanations and easy-to-follow steps using HTML, CSS, and JavaScript."
@RayquanRogers
@RayquanRogers 2 ай бұрын
Why’d you post the same thing twice?
@patrickbanda3585
@patrickbanda3585 Жыл бұрын
Awesome lesson. For upcoming tutorials please use live server split the screen into two parts, one side show the code and on the other let us see the live render so we see the changes in real time throughout the tutorials. Keep up the good work.
@yashbahuguna8135
@yashbahuguna8135 Жыл бұрын
can you share code link for this project
@SADDAMKHAN-tv7ro
@SADDAMKHAN-tv7ro 5 ай бұрын
New viewers k liye aik guide A "question" property (string) An "answer" property (array of objects) A "text" property (string) A "correct" property (boolean)
@orangeapple681
@orangeapple681 9 ай бұрын
Also got another question about JS syntax. Why would you code something such as correct: false correct: true vs true: no false: yes or true: 1 true: 0 false: 1 false: 0 I guess, why would one syntax be the ultimately correct way vs other ways? It makes coding look more like rote memorization vs a logical process.
@mukarramqureshi4935
@mukarramqureshi4935 Күн бұрын
haha
@AsimAliKhan-h3c
@AsimAliKhan-h3c Жыл бұрын
Your videos are really helpful, only thing I need to mention is when you are writing code please explain it also, dont say this format or code, explain it instead
@crazy_lovers_zditz9986
@crazy_lovers_zditz9986 10 ай бұрын
I follow up the whole code It really worked ......but I am unable to run the Java script yar ...... please suggest a solution ...yar Only script is not showing over the app other work too fluently. After rechecking the .....i Got the whole concept 😍😍😍 thanksss a lot for teaching this much easy way n perfectly.I really made it .😁best way uhh were teaching
@bhoomikasn5094
@bhoomikasn5094 10 ай бұрын
same here script is not showing what is the issue can please tell me
@vinitkumarparmar1339
@vinitkumarparmar1339 10 ай бұрын
@@bhoomikasn5094 make sure you import the js in html code at bottom
@deepanshisinghal719
@deepanshisinghal719 29 күн бұрын
i am facing same problem
@dadashussein
@dadashussein Жыл бұрын
I want to add shuffle function const shuffleAnswers = (answers) => { for (let i = answers.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [answers[i], answers[j]] = [answers[j], answers[i]]; } }
@philippschonherr
@philippschonherr 6 ай бұрын
Hi! Where in the source code do I have to insert this?
@AxolotlAlex
@AxolotlAlex 10 ай бұрын
For those who need it: * { margin: 0; padding : 0; font-family: 'Poppins' , sans-serif; box-sizing: border-box; }
@rutujashirke2428
@rutujashirke2428 9 ай бұрын
Next Level Javascript literally
@urjaangre2216
@urjaangre2216 5 ай бұрын
For those who are getting the next question's option added to the previous qsn; Just add the resetState(); to beginning of showQuestion();
@beardedraider4751
@beardedraider4751 Жыл бұрын
You have no idea how much this has helped me! Thank you!
@SamsonA14
@SamsonA14 4 ай бұрын
This tutorial has helped me so much. Thank you, I'm now a subscriber and will be practising my javascript skills with your 30day JS code playlist.
@Kalicharan-tu6kr
@Kalicharan-tu6kr 4 ай бұрын
Your java script part runs ?? mine js part does not making any changes why T_T??
@marianobarella3191
@marianobarella3191 9 ай бұрын
This is exactly what I was looking for, and you made it so simple! Thank you so much!
@jerryudochu3496
@jerryudochu3496 7 ай бұрын
Wonderful tutorial. Simple and easy to follow. Can you please show me how to save the quiz in local storage and reset the local storage when you restart the quiz
@venkatesh87689
@venkatesh87689 7 ай бұрын
Thank you bro it helps me lot I successfully executed quiz website
@victoriatamunowari2400
@victoriatamunowari2400 Жыл бұрын
Coming from someone who has been frustrated..Thank you So mmuch, This was really helpful, was what I needed
@sangeetsargamsagar4639
@sangeetsargamsagar4639 Жыл бұрын
here is an easier version: Quiz App Score: 0 const questions = [ { question: "What is the capital of France?", options: ["Paris", "London", "Berlin", "Madrid"], answer: "Paris" }, { question: "Which planet is known as the Red Planet?", options: ["Earth", "Mars", "Venus", "Jupiter"], answer: "Mars" }, { question: "What is the largest mammal in the world?", options: ["Elephant", "Giraffe", "Blue Whale", "Hippopotamus"], answer: "Blue Whale" }, { question: "What is the chemical symbol for gold?", options: ["Go", "Au", "Ag", "Ge"], answer: "Au" } ]; let currentQuestionIndex = 0; let score = 0; const questionElement = document.getElementById('question'); const optionsElement = document.getElementById('options'); const scoreElement = document.getElementById('score'); function displayQuestion() { const currentQuestion = questions[currentQuestionIndex]; questionElement.textContent = currentQuestion.question; optionsElement.innerHTML = ''; currentQuestion.options.forEach((option, index) => { const button = document.createElement('button'); button.textContent = option; button.addEventListener('click', () => checkAnswer(option)); optionsElement.appendChild(button); }); } function checkAnswer(selectedOption) { const currentQuestion = questions[currentQuestionIndex]; if (selectedOption === currentQuestion.answer) { score++; } currentQuestionIndex++; if (currentQuestionIndex < questions.length) { displayQuestion(); } else { showResult(); } } function showResult() { questionElement.textContent = 'Quiz Completed!'; optionsElement.innerHTML = ''; scoreElement.textContent = `Your Score: ${score} / ${questions.length}`; } displayQuestion();
@sambasow2816
@sambasow2816 Жыл бұрын
Hello
@deepakwaghmare3406
@deepakwaghmare3406 3 ай бұрын
doing this project today og
@pedropimenta896
@pedropimenta896 3 ай бұрын
This is very nice, but it makes long answers verbose on the code. The code will have the answer written twice, every time.
@PeaceAlbert-o7k
@PeaceAlbert-o7k 6 күн бұрын
Thanks a lot but can you help drop code for the admin dashboard that can be used to update questions to the website for a school
@gamingdemon113
@gamingdemon113 9 ай бұрын
it's bit harder for beginner in my opinion . recommended to do this after next 4-5 projects if you're new to js
@juatv777
@juatv777 Жыл бұрын
Amazing Lesson. My only problem is why the quiz does not work even after writing it correctly.
@ankurprasad
@ankurprasad 10 ай бұрын
Same here dude ...... if u get the perfect One . Will u share to the Comment ??
@fahmimfs4134
@fahmimfs4134 9 ай бұрын
same here. My js has a problem, it didn't connected to the html even I has insert its link
@ajjunior1442
@ajjunior1442 5 ай бұрын
I think i'm the only one that found this hard to grasp!
@Ashutoshदूबे
@Ashutoshदूबे 3 ай бұрын
agar kisis ko ye problem aa raha ki configuration not found to notedpad se file save karte samay .xml format laga do .txt ki jagah aur open with me jakar edge ko sel karke always use this to open xml format par click kar do mera bhi ho gaya finally
@RAJACADEMY1
@RAJACADEMY1 Жыл бұрын
Sir I have a doubt if I wants to add approx 10x questions then how to make data base in this type of application
@-currentworld1825
@-currentworld1825 6 ай бұрын
Learn Backbend
@AdityaSharma-er3gs
@AdityaSharma-er3gs 8 ай бұрын
hey! your videos are amazing, I just want to know the best place to study about JavaScript properties which I don't know about... when I was watching this video I didn't know about 'dataset'.
@faresta4ua
@faresta4ua 11 ай бұрын
you are the greet teacher in my learning process
@lesterdimitresque6315
@lesterdimitresque6315 6 ай бұрын
thank you brother , your tutorials are clear and simple , great job ! subscribed
@kandoHunter69
@kandoHunter69 7 ай бұрын
well event though im beginner, i had a doubt ...Like using dataset and classList to store the correct answer is not safe right?? the user would just use developer element to get answer. It would be better to use a indexing method or logical operator operation
@anzkhan646
@anzkhan646 Жыл бұрын
Thanks you Avinash sir ..... Done
@alexandrabernard7548
@alexandrabernard7548 9 ай бұрын
Merci pour tout, ce fût si facile avec vous. Very, very, very good
@jeelu1
@jeelu1 5 ай бұрын
If you're code is not working then call the startquiz function in the last
@SamuelMaiva
@SamuelMaiva 11 ай бұрын
Nice video ,,,you made me to have no fear in JavaScript again.... thanks a lot
@gavinwaight
@gavinwaight Жыл бұрын
Question, how did you change the default font color of your code in VS code? My JS colors are looking different than the colors displayed here, and I really like the colors you have compared to my own.
@prus_projektant1857
@prus_projektant1857 Жыл бұрын
You need to download extension to change theme of code. Extension tab is on the left site of screen. I think you Can google "theme for code VS code" and you can choose one you like and then find and download theme extension in VS
@kunjalbhudke80
@kunjalbhudke80 7 ай бұрын
Change the theme of VS Code from the settings option located in the bottom left corner. Each theme has its own font color.
@henaparvin9032
@henaparvin9032 Жыл бұрын
A big salute for you sir 🙇 Thank you so much .. I have learned a lot of things today
@jayanaeverything124
@jayanaeverything124 Жыл бұрын
Thank so much for your tutorial, but I have problem on my code, why ${score} doesn't work?
@jayanaeverything124
@jayanaeverything124 Жыл бұрын
I got the mistake it supposed to use `` , instead of ''
@AbdullohMulkamonov
@AbdullohMulkamonov Жыл бұрын
This channal the best in You tube. Thank you for Video.
@lengwan8973
@lengwan8973 Жыл бұрын
Thank you so much. I watched this for reference to create my portfolio .so helpful
@Shabeerapatan
@Shabeerapatan 3 ай бұрын
Thank you so much , next level of explanation sir
@hiamr4619
@hiamr4619 8 ай бұрын
Amazing tutorial but I had run into a problem in the line of code that showed the score.
@harismalik4330
@harismalik4330 3 ай бұрын
Very Helpful and learned new things also
@GreatStackDev
@GreatStackDev 3 ай бұрын
Glad to hear that. Thank you.
@ngnko
@ngnko Жыл бұрын
Thanks a lot from Uzbekistan! I have leaned a lot from your projects :)
@harjyotsinghgulati6603
@harjyotsinghgulati6603 5 ай бұрын
I have learned to much things from this video
@GreatStackDev
@GreatStackDev 5 ай бұрын
Glad you liked it. Thanks for your comment. 😊
@Priyanshu-z7g8m
@Priyanshu-z7g8m 3 ай бұрын
But not English
@sureshd2555
@sureshd2555 Жыл бұрын
Thanks for ur best teaching sir. ❤😊
@blackandblue2
@blackandblue2 3 ай бұрын
For those who are lazy, I gave the question format to chatGPT and had it create a bunch of trivia questions for me.... relating to the lord of the rings, star wars, and harry potter...
@lakshyarajdash
@lakshyarajdash Жыл бұрын
I've made one myself.. but tbe design is awesome
@Ifelola01
@Ifelola01 Жыл бұрын
Please can you share Answers are not showing on the button
@devanshusaran8004
@devanshusaran8004 Жыл бұрын
@@Ifelola01 did you got the solution?
@femi-ayeniayodeji1264
@femi-ayeniayodeji1264 Жыл бұрын
Me too
@akojusowmya8626
@akojusowmya8626 11 ай бұрын
Sir please do a video how to integrate this website with Php & mysql
@KrishPatel-qy8hj
@KrishPatel-qy8hj 7 ай бұрын
Nice Video!!! But Unfortunately not working after the Answer names!!
@shuaibakhtar5333
@shuaibakhtar5333 4 ай бұрын
Really helpful sir.....Thankyou so much for your efforts...
@Cheetohzz
@Cheetohzz Жыл бұрын
I love your videos so much!!! You have been teaching me so well and I can't thank you enough.
@privateclass8105
@privateclass8105 Жыл бұрын
Please provide time set in this quiz for the next video.❤
@mayuriagale7488
@mayuriagale7488 2 ай бұрын
Thank you so much ❤❤ It worked🤗🤗🤗
@GreatStackDev
@GreatStackDev 2 ай бұрын
You're welcome. 😊 Keep coding.
@Ankitp8
@Ankitp8 27 күн бұрын
Please give me source code 🙏🏻
@Ankitp8
@Ankitp8 27 күн бұрын
Because mine only shows answers 1 2 3 4 ... So please give me source code
@adedokunjoseph-gd8xq
@adedokunjoseph-gd8xq 10 ай бұрын
Good day Many thanks for the great contributions to knowledge. I tried this, but the js code did not respond. I even follow it line by line just like yours. . what should I do
@fransmoemi9707
@fransmoemi9707 3 ай бұрын
Thank you very much Sir🙏
@GreatStackDev
@GreatStackDev 3 ай бұрын
Glad you liked it. You are welcome! 😊
@sravansai8990
@sravansai8990 3 ай бұрын
Nice explanation sir and easy to understand keep going 😊...
@GreatStackDev
@GreatStackDev 3 ай бұрын
Thanks a lot 😊 Keep coding.
@tauraimashambanhaka9458
@tauraimashambanhaka9458 Жыл бұрын
Thank you for this Easy Tutorial. Please keep creating more JavaScript tutorials. The way you simplify code is amazing, keep up the good work.
@diogodias_
@diogodias_ Жыл бұрын
omg thaaaanks, i learning so mutch here, and you help-me with my project!
@BinamLuitel
@BinamLuitel Жыл бұрын
thank you very much sir your explanation is so clear
@meenakshimeeen
@meenakshimeeen 3 ай бұрын
you are doing great job... thank you so much
@قلعةالعلم-ع8د
@قلعةالعلم-ع8د 9 ай бұрын
thank you from Istanbul/turkey
@therio6637
@therio6637 Жыл бұрын
Congratulations for 800k 😁🔥🔥🔥🔥🔥
@vijayaragavanmr1960
@vijayaragavanmr1960 Жыл бұрын
Thank you for your wonderful teaching but, want to the source code. I watch your some videos that videos don't have the source code
@mahesh_bvn
@mahesh_bvn 15 күн бұрын
Well explained, thanks!
@MdMubin-qz2sx
@MdMubin-qz2sx 6 ай бұрын
If I want to add image such as a watermelon's image and say which vegetable is this ? For adding image and connect with it which things need to change actually? If I just add image of vegetables of every question's place in js , will it work?
@LuisMedina-dk3vc
@LuisMedina-dk3vc 11 ай бұрын
Thank you so much. You're channel is so good.
@pramod_laha
@pramod_laha 11 ай бұрын
bro it would be more and more helpful if you had customized the result area like adding percentage and others
@debugdiario
@debugdiario Жыл бұрын
Thank you for the amazing content, but i'm facing an error: when I select the answer and click "next", instead of leading me to the next questions, it shows the score "1 out of 3". Anyone can help me?
@PankajRaghunadhabhatla
@PankajRaghunadhabhatla 11 ай бұрын
Hello Avinash, Nice video and very easy and simplified. I want to ask you, after making an app like this, how do we make it live or as an app. I understand that this is for tutorial. What are the next steps into it. How do we go about it. Please guide on this.
@MalikArshad
@MalikArshad 10 ай бұрын
Usually tutorials do povide code link in the description. You haven't. The link you provided is behind a paywall.☹
@mademen3804
@mademen3804 Жыл бұрын
Great video, how do I add a timer to the quiz. So let's say 50 questions will have 20 minutes to answer questions.
@nsmworldentertainment4687
@nsmworldentertainment4687 Жыл бұрын
if u findout any solution regarding how to add timer pls dm me
@tiestomate
@tiestomate Жыл бұрын
Hi did you find a solution how to add timer to this quiz?
@kirankharsel2368
@kirankharsel2368 10 ай бұрын
❤❤ simple, easy to understand project.. thanks
@doremon3692
@doremon3692 8 ай бұрын
really you understand this r just copy the code
@BECSAQUIB
@BECSAQUIB Жыл бұрын
Your tutorial is awesome. Pls upload source code of project too.
@ayeshashaikh2087
@ayeshashaikh2087 Жыл бұрын
thank you so much this code of yours help me at very crucial movement
@raheemibrahimademola
@raheemibrahimademola Ай бұрын
Please whenever I click on next button after clicking on the answer, it's not taking me to the next question. When I checked the console, it wrote "uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received". Please what what's the solution.
@valentine8687
@valentine8687 Жыл бұрын
Could you share the files so that we can copy the scripts please
@soydanhakan10
@soydanhakan10 9 ай бұрын
Thank you so much teacher :)
@dianagb9770
@dianagb9770 3 ай бұрын
Back ticks are not working in my sublime text code. the regular single quotation marks make the string turn green (read like a string by JS), but when i switch to back ticks, it is white and my code breaks.
@aminkarimi5735
@aminkarimi5735 Жыл бұрын
hi thank you for good tutorial do you have the source on git? how can i have the source?
@desideneva1141
@desideneva1141 Жыл бұрын
Amazing. And how we can achieve different backgrounds(images) for each question? Thank you.
@simpleomiii3660
@simpleomiii3660 Жыл бұрын
hello sir , your video are really helpful and your voice is very good i'm lot of learn in your video ..keep creating new design and hover , animation effect
@yoursnarendra
@yoursnarendra Жыл бұрын
thank you bro but I have small doubt how to post q&a build wordpress website
@aaravisinha3874
@aaravisinha3874 Жыл бұрын
Thank you so much sir for this useful video 🙏🙏
@lucubus8403
@lucubus8403 8 ай бұрын
Avinash is a god amongst mortals.
@kingharji9170
@kingharji9170 2 ай бұрын
Amazing work brother!
@orangeapple681
@orangeapple681 9 ай бұрын
I'm assuming there's no reason why he chose to use an ID CSS mod instead of another div table w/ CSS mod for the 'next-btn'. Seems like personal taste/ preference? Anyone care to weigh in on that decision? I'm very new to programming so...
@salwatalithazahrani6074
@salwatalithazahrani6074 Жыл бұрын
How to add image to to the quiz?
@paradise836
@paradise836 7 ай бұрын
btw largest desert in the world is Sahara
@saxma1277
@saxma1277 Жыл бұрын
Bro why are you changed your channel logo and name your previous logo and name were amazing and easy
@amiralisalari6863
@amiralisalari6863 5 ай бұрын
Thanks a lot that was great, but what does dataset do??❤❤
@d.lindstrom7130
@d.lindstrom7130 6 ай бұрын
I also want to say thank you very much!
@peteandrieciruelas9750
@peteandrieciruelas9750 7 ай бұрын
Hello, may I ask if I can use this to create a forecasting assessment test on a Website?
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 13 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 57 МЛН
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1 МЛН
How To Make A Calculator Using HTML CSS And JavaScript
19:01
GreatStack
Рет қаралды 930 М.
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 2,8 МЛН
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Coding2GO
Рет қаралды 249 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,8 МЛН
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 663 М.
How To Create Image Search Engine Using HTML CSS and JavaScript
34:37
How To Build Notes App Using HTML CSS and JavaScript
25:21
GreatStack
Рет қаралды 145 М.
CSS Popover + Anchor Positioning is Magical
20:44
Kevin Powell
Рет қаралды 30 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 13 МЛН