This repository has been archived on 2025-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
rhaj/rhai_engine/rhaibook/ref/print-debug.md
2025-04-03 09:18:05 +02:00

17 lines
362 B
Markdown

`print` and `debug`
===================
The `print` and `debug` functions can be used to output values.
```js
print("hello"); // prints "hello" to stdout
print(1 + 2 + 3); // prints "6" to stdout
let x = 42;
print(`hello${x}`); // prints "hello42" to stdout
debug("world!"); // prints "world!" to stdout using debug formatting
```