-
Notifications
You must be signed in to change notification settings - Fork 656
Closed
Description
PROBLEMS WITH FETCH
Below is your implementation of fetch -
fetch("questions.json")
.then((response) => response.json())
.then((data) => {
questions = data;
console.log(questions);
start(); //<--problem
})
.catch((err) => {
console.log(err);
});This piece of code returns an array of empty objects when start() is being called from then, image shown below

If start() function is not called from then it magically somehow works, image shown below:

P.S: I happen to be learning, javascript and web development in general and that is why I came across this playlist. So I cannot progress further to complete this app as I am stuck here.
Request you to provide a workaround as soon as possible :-)
Metadata
Metadata
Assignees
Labels
No labels