Tejas1510 / Hacking-Scripts

Hacking Scripts contains amazing and awesome scripts written in Python, JavaScript, Java, Nodejs, and more. The main aim of the repository will be to provide utility scripts that might make everyday life easy.
https://hacking-scripts.netlify.app/
240 stars 285 forks source link

Dynamically fetching questions in QuizApp JavaScript #934

Open smgrv123 opened 3 years ago

smgrv123 commented 3 years ago

Using an API call the questions present as static data in the script.js file dynamically using the fetch function.

GowthamGoush commented 3 years ago

Apologies for the delay. How about adding enhancements since a similar script already exists.

smgrv123 commented 3 years ago

So what I am thinking is that in the existing script.js we can change the static questions to dynamic questions using a pre-existing API.

GowthamGoush commented 3 years ago

Yeah, that will be cool. Go ahead, @smgrv123.

mehabhalodiya commented 3 years ago

@smgrv123 any updates?