Verified Commit 1255fd46 authored by Jakob Moser's avatar Jakob Moser
Browse files

Improve comment

parent 924c8ebf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -35,10 +35,10 @@ export class Exercise {
     * Start the exercise.
     */
    start() {
        // Bind the execute function to the ExerciseExecutionContext.
        // This means that the `this` keyword, when used in the function, will
        // point to this ExerciseExecutionContext object.
        // The newly bound function is then called.
        // Bind the execute function (that the teacher writes to create an exercise,
        // see exercises.mjs) to the ExerciseExecutionContext.
        // This means that in the execute function, the `this` keyword will point to
        // said context.
        this.#execute.bind(this.#context)()
    }