For now, a template of the code in quiz.js (the part that is related to questions) is not that good.
I would suggest using new Question approach (see example).
[ ] In quiz.js create a function function Question(type=1) {...}. The output is an object of the following structure:
{
"type": 1, // Question type. By default is 1, i.e. from en/ru to Arabic
"choices": [choise0, choise1, choise2, choise3],
"correctChoise": 0-3,
"text": "What is Arabic for 'She said'?"
}
For now, a template of the code in quiz.js (the part that is related to questions) is not that good. I would suggest using
new Question
approach (see example).function Question(type=1) {...}
. The output is an object of the following structure:new Question()