How to show only one question & answer one at a time versus showing all the questions on the webpage? [closed]

Im new to javascript and currently trying to create a quiz through it. I my database for he questions and answers are embedded in javascript and I’m trying to show 1 q&a at a time versus showing all of them at once. How would I do this and add a btn function so that the user can submit their answer and it will automate to the next question. Thanks!

Javascript Code:

text

HTML

text