Loading static/js/exercises.api.mjs +4 −4 Original line number Diff line number Diff line Loading @@ -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)() } Loading Loading
static/js/exercises.api.mjs +4 −4 Original line number Diff line number Diff line Loading @@ -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)() } Loading