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

Example

> exec("console.log(10 + 10)")
// Output: 20

runScript(filePath) (alias: rs)

Fetch and execute a Javascript file

Example

> runScript("file.js")
// Output: 20

pp(obj)

Pretty print an object. Useful for debugging.

Example

> pp({ name: "Gwen" })

// Output:
{
  "name": "Gwen"
}

Last updated