I'm having trouble applying a for
to fullcalender to list events in a calendar. It gives me the following error:
Unexpected token for
Here is my code:
for (i = 0; i< array1.length; i++) {
{
title: array5[i],
start: array1[i]+'T'+array3[i],
end: array2[i]+'T'+array4[i]'
},
}
I've already removed for
to see if the problem was array
and it worked, what can I be doing wrong?