Map out the "Global State" of the quiz. Alpine.js works best when you know exactly what variables you are tracking.
List every variable the frontend needs to remember.
Deliverable: A `state.json` file containing variable names and their starting values.
Example: `{"currentQuestionIndex": 0, "userScore": 0, "isQuizStarted": false, "selectedAnswer": null}`.
Map out the "Global State" of the quiz. Alpine.js works best when you know exactly what variables you are tracking.
List every variable the frontend needs to remember.
Deliverable: A
state.jsonfile containing variable names and their starting values.Example:
{"currentQuestionIndex": 0, "userScore": 0, "isQuizStarted": false, "selectedAnswer": null}.