Jump to navigation

Class: Script

Numbas.jme.variables.Script

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
Source:

Members

source :string

The source code of the script.

Type:
Source:

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
Source: