Saltar al contenido principal

Function: startQuizAttempt()

function startQuizAttempt(
context,
siteUrl,
activityId
): Promise<{
attemptId: number;
changed: string;
questions: Question[];
}>;

Defined in: areas/quizzes/attempts.ts:365

Starts an attempt, or continues the one in progress, and gives its questions.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber

Returns​

Promise<{ attemptId: number; changed: string; questions: Question[]; }>