i want to create a program like a quiz. the scenario is the user will submit the answer and the answer will be store in array. the variable array is answer.
this.state = { answer : [] }
the user will be give the answer and store to answer. maybe value will be like ['a','b','c'] this is just an example answer will be store in array. Nah, the feature the quiz can show the previous or next question, and the user can change the answer on the array. How to change the value in array in the specific index? In example the answer b in the second index on array will be change to a. How can i change the value?