This context provides methods for storing and retrieving data.
The data will be stored until the student terminates the WBT.
Methods
-
<inner> get(name, namespace) → {object}
-
Gets a custom defined variable from the sequence scope.
Parameters:
Name Type Description name
string The name for the variable.
namespace
string A desired namespace for the variable.
Returns:
The value of the variable. "null" if the variable do not exist in the given namespace.
- Type
- object
-
<inner> set(name, value, namespace)
-
Sets a custom defined variable in the sequence scope.
Parameters:
Name Type Description name
string The name for the variable.
value
object The desired value.
namespace
string A desired namespace for the variable.