Global
This part of the documentation describes the global objects and methods available in the Javascript console.
Global Methods
exec(expression)
Execute arbitrary Javascript expressions
Argument
Type
Description
expression
String
The JS expression to execute
Example
runScript(filePath) (alias: rs)
Fetch and execute a Javascript file
Argument
Type
Description
filePath
String
The absolute path of a JS file.
Example
pp(obj)
Pretty print an object. Useful for debugging.
Argument
Type
Description
obj
Any
The object to pretty print
Example
Last updated