I am trying to figure out how to create a flow of questions that operate with 1 yes and 1 no button primarily in JS. HTML and CSS can be used.
Example: Start with only 1 set of Yes/No buttons on the screen with Question 1. Based on what the user clicks (Y/N) it follows a series of questions. For example: If the user clicks Yes to Question 1, it immediately asks Question 2, If the user clicks Yes to Question 2 then the program stops and Prints some text, otherwise it continues to ask the next question. If the user clicks No to Question 1, it Immediately asks Question 3, and so on.