Accessing the Custom Autograder Edit Window

  1. Go to a created assignment within the Create tool or the Assignments tool and choose Edit.
  2. In the following window, scroll to the bottom and select Custom Autograder Edit.

Building Your Autograder

Understanding the Parameters

The JavaScript autograder consists of two key functions where tests can be implemented:

beforeRun(code)

code is an object with keys student and solution

afterRun(output)

output is an object mapping {String:object}. The keys are student and solution

💡 Important: The console output does not include text that was printed using readInt, readLine, etc.


Writing JavaScript Code Throughout the Autograder