new Script(source, base, scope)
A notes script.
Parameters:
Name | Type | Description |
---|---|---|
source |
string | The source of the script. |
base |
Numbas.jme.variables.Script | A base script to extend. |
scope |
Numbas.jme.Scope |
Members
source :string
The source code of the script.
Type:
Methods
evaluate(scope, variables) → {object}
Evaluate all of this script's notes in the given scope.
Parameters:
Name | Type | Description |
---|---|---|
scope |
Numbas.jme.Scope | |
variables |
Object.<Numbas.jme.token> | Extra variables defined in the scope. |
Returns:
Type | Description |
---|---|
object |