print()

print(value, value2, ...)

Writes values to the device system log / script console.

Accepts any number of arguments and writes them to the script console, which is visible in the on-board web interface. Numbers and objects should be converted with string() when concatenating into a message.

Arguments

NameTypeRequiredDefaultDescription
value… any yes One or more values to log. Objects should be wrapped in string() to serialise them.

Example

let speed = scope.getPeak(50, 70);
print("Peak: ", string(speed));
// Peak: {"bin":322,"freq":59.977173,"amp":0.037552}
print("RPM:", (speed.freq * 120 / 10).toFixed(), "rpm");