Building a Multiple Choice Quiz | Javascript | Tutorial 24

preview_player
Показать описание

Throughout the course we'll be looking at various topics including variables, arrays, getting user input, loops, conditionals, interacting with the DOM and much more.
Рекомендации по теме
Комментарии
Автор

Mike you are really an amazing teacher, I watched a video thats 1 hour length and didnt get a single thing and in the end it was just full of mistakes but you just speak so clearly and explain everything in detail that I can understand and not just copy the code, you are so underrated btw, thank you for creating such high quality classes you are saving my life litereally.

ellx_
Автор

Finished your python lessons and am almost done with these ones. Your explanation of concepts is very well organized. Thank you so much.

JassarDev
Автор

"What color is a strawberry?"
Mike: red
HTML: WRONG

arewenot
Автор

Thanks Mike. Could you show us how to do that using radio buttons rather than a text entry area?

porker
Автор

hey mike i have one question about this
can you set up a timer with it for user to answer their question within that time

emonshah
Автор

Well explained, straight to the point, and simple. Kudos!!!

balloney
Автор

Hey Mike, I appreciate your videos. I watch you and Bob Tabor. I took your PHP course too. I have a request and a suggestion for you. For the request, I would really like to see you make a video that explains implementing a shopping cart and payment system in a website. Most of the videos I have seen regarding this are very specific to something like Wordpress (which I don't use). I would like to know more about the whole process of first choosing a payment processor and then actually tying it into a website with code. You have the skills to explain this in an understandable way. As a suggestion, if you would change to a lavalier microphone, the sound quality of your videos would be much better. Since you don't need to physically move a lot in your videos, you could even get by with a $20 corded version like the Boya by-m1 and it would make a big improvement over your shotgun mic. Anyway, thanks for the easy to understand and free knowledge. You've been a great help to me.

robertoverbey
Автор

I actually managed to do this by myself before watching the tutorial. Seems like things are finally starting to click

matthewsmith
Автор

Mike, you should update code on your site.I fixed it:


var questions = [
{
prompt: "What color are apples?\n(a) Red/Green\n(b) Purple\n(c) Orange",
answer: "a"// idk why did you use \n\Purple instead of \n Purple
},
{
prompt: "What color are Bananas?\n(a) Teal\n(b) Magenta\n(c) Yellow",
answer: "c"// you used \n\Magenta instead of \n Magenta
},
{
prompt: "What color are strawberries?\n(a) Yellow\n(b) Red\n(c) Blue",
answer: "b"//ans. is not a, you used \n\Red instead of \n Red
}
];
var score = 0;


for(var i = 0; i < questions.length; i++){
var response =
if(response == questions[i].answer){
score++;
alert("Correct!");
} else {
alert("WRONG!");
}
}
alert("you got " + score + "/" + questions.length);

stefanjovanovic
Автор

Thanks, searched so much for a simple way to do this, and found you. Good job on the video

notashark
Автор

Great video thanks! Do you have another video of applying a timer to the quiz??

christianlewis
Автор

How can I transform from a div in html with question to an array in js but showing it to the user?

Автор

All I gotta say is wow I mean damn never seen a tutorial so concise and straight to the point shit bro

OMEGA-bduf
Автор

That's awesome! Thanks for this, Mike!

scottisitt
Автор

Great job, this is right project explanation for a beginner in JavaScript. Exactly what I am looking for

kolyxix
Автор

Hi, thanks for the video. I have a question. If I have 1000 questions with 4 MCQs, how should i manage these data?

eid
Автор

For some reason I can’t seem to actually read the question out to the user, it just shows up undefined or whatever and I can’t figure out what’s wrong.

xrayfisg
Автор

im a javascript beginner. That helps! Thank you!

MsCellobass
Автор

Thanks Mike, after the questions are answered, and you get, you got 3/3 or whatever, I click ok, and the questions repeat. Been trying to include a Break code, but it's not working. You, or anyone have an answer or suggestion to stop the questions from repeating?

ScreenPrintR
Автор

your work was well explained and perfect but you didnt show in most of your teachings you skipped the html and css. i do need to see how you added the table to i can follow along and get same result please.

brany