Hiyve Components - v1.0.0
    Preparing search index...

    A quiz's score.

    interface QuizScore {
        correct: number;
        passed?: boolean;
        results: Record<string, boolean | null>;
        scorable: number;
        score: number | null;
    }
    Index

    Properties

    correct: number

    Questions answered right.

    passed?: boolean

    Whether the score reached the quiz's pass mark. Absent when the quiz has none, or nothing could be scored.

    results: Record<string, boolean | null>

    Per question: right, wrong, or null when it isn't scored.

    scorable: number

    Questions that can be scored.

    score: number | null

    Fraction right (0–1) of the questions that can be scored, or null when none can.