class Call
extends Instruction

Call instructions in a Qworum script starts a new Qworum method call when evaluated by the Qworum interpreter in a web browser.

Examples

A call without arguments:

const call1 = Call.build('@', 'home/');

A call with data arguments:

const call2 = Call.build(
  '@', 'home/',
  {name: 'current year', value: Json.build(2022)}
);

A call with data and Qworum-object arguments:

const call3 = Call.build(
  ['@'], 'home/',
  [{name: 'current year', value: Json.build(2022)}],
  [{name: 'object', object: ['@', 'a Qworum object']}]
);

Static Methods

build(
object,
href,
parameters,
objectParameters
)

Builder for Call instructions.

Properties

readonly
href
readonly
object
readonly
parameters

Methods

Serialises the object to string for informational purposes.

See