Build a Quiz App (11) - Fetch API to Load Questions API

preview_player
Показать описание
Build a Quiz App with HTML, CSS, and JavaScript to improve your Core Web Development skills!

In this video, we will use Fetch to request a list of questions from the Open Trivia DB API.

### Course Content

### Website

### Course Links

### Subscribe to My Newsletter

### Social Media
Рекомендации по теме
Комментарии
Автор

Was wondering if you'd do a tutorial on implementing categories to the game that matches the Trivia DB categories?

ashrafm
Автор

Love the course! I'm a little confused on the const answerChoices part around 3:58 as a whole. Do you have any recs on supplemental reading or any other resources that would help me understand it better?

thomassmith
Автор

Please add a tutorial about how to add timer in questions

aravindks
Автор

instead of fetching the questions of a outside source (with an API) is it possible to fetch them from a DB using a DBMS ? btw... very interesting video !!!

netghosta
Автор

everything is working for me except the implementation of the question from the json(). in line 24 yo put question: loadedQuestion.question but.. where does the question property comes from?

facundoretamar
Автор

thank you James ... with your tutorial I leaned a lot ..!!!

nrochoa
Автор

please still don't understand how you formatted the the questions from the API response 🙏🏾🙏🏾🙏🏾🙏🏾

francisadekanye
Автор

Hi James, can you please advise how to use your own questions rather than that of the trivia. Thanks for the awesome tutorial.

Denilsinho
Автор

Sorry if you have gone over this, however, couldn't the user be able to find the answer from inspecting the element? If so, is there a way around this?

CyanideShock
Автор

Hi James, can you please explain more about how to add an image, for all 3 questions. I am a beginner and I tried everything I could, but couldn't add an image. Please Help !!

chandramohanchauhan
Автор

Which extension did you use in your browser, for turning api code from complex code to easy code

amanahmed
Автор

Hello, I don't understand by what to replace the points at 3.35 . Sorry if my English is bad, I'm French 😅

mehdi
Автор

Could someone explain line 28? Why dont we use const or let?

zdarofMERGAITES
Автор

Hey how to do readable json code. you have done at 00:00:53 seconds time

basavarajhotkar
Автор

Hi James, thank you for such a great tutorial. So I wanted to add a picture to one of the questions and I came up with this method but I am not sure how common it is. I appreciate your feedback.
I added this if in the getNewQuestion()

if(question.innerText === "What is the meaning of this sign?") {

} else {

}

momogurun
Автор

From opentrivia we are getting their questions, how can i get my customized questions?

lyricaldiary
Автор

&Quot; If anyone gets this quot&; issue with the quotes of titles and stuff, best I could figure out was change "question.innerText" to "question.innerHTML" around line ~79 in game.js file. Seems to work.

GilFavor
Автор

hello there james great series. i just a question when i use the open trivia API my game is not loading it just redirects to the end page. please can you help me fix it.

syedumairali
Автор

This was a bit confusing, some more console log couldve helped alot

zdarofMERGAITES
Автор

How to allow user to see correct answer after they select the wrong one? Please reply.

dolelcy
visit shbcf.ru