I am a complete beginner and I am working on creating a multiple choice quiz using array. The questions have the same format " Which word in the following has a similar meaning to '_________' ". So I create an array(?) that store all the words I want to put in '________' and another array that contain answers correspond to it.
var ques=['apple', 'pencil' ,'juice'];
var ans= ['orange', 'pen','water'];
However, as I want to create a few hundreds of questions, I think it is quite troublesome to do it in the following way.
var querep=[ ['apple','orange'], ['pencil','pen'],['juice','water'] ];
so i try doing this instead:
var querep=[ [ques, ans] ];
and yes, i know it makes no sense to u all, but i just want to merge the two array lists and allow it to do the same function as
var querep
example questions:
which word in the following has similar meaning to apple?
A.pen
B.writer
C.orange
D.vegetable