A basic question please, I am trying this code:
var number_questions = postsJSON1[i]['question'].length;
for (a=0; a<number_questions; a++) {
var post+[a] = postsJSON1[i]['question'][a];
}
this line give an error: var post+[a]
What is the correct way ?
This will get you an array:
This will get you a string:
BTW I don’t know the contents of
postsJSON1[i]['question'], but the following looks a bit weird:Shouldn’t that be:
?