I have a question with multiple answers. I want an array that has two spots, the first can only hold one value (one question), the second can hold an array (multiple answers).
Question: ‘favorite colors’
Answers: ‘blue’ ‘black’ ‘red’
var answer = [];
var question [[],answer];
I’m unable to get this to work properly. 🙁
Is it what you wanted?
or without immediate variables:
To get the question you do:
To get the list (array) of answers you do: