ui.createMenu('Minigames') .addItem('Quiz', 'quiz1') .addToUi();
function quiz1() { DocumentApp.getUi() .alert('Question 1 goes here') var ui = DocumentApp.getUi(); ui.createMenu('Quiz') .addItem('Read question again', 'question1') .addSubMenu(ui.createMenu('Question 1')) .addItem('ans1', 'quizWrong') .addItem('ans2', 'quizRight1') .addItem('ans3', 'quizWrong') .addToUi();}
function quiz1() {
DocumentApp.getUi()
.alert('Question 1 goes here')
var ui = DocumentApp.getUi();
ui.createMenu('Quiz')
.addItem('Read question again', 'question1')
.addSubMenu(ui.createMenu('Question 1').addItem('HERE!', 'fnHERE')) // <= For James
.addItem('ans1', 'quizWrong')
.addItem('ans2', 'quizRight1')
.addItem('ans3', 'quizWrong')
.addToUi();
}