reorganize module
This commit is contained in:
16
_archive/rhai_engine/rhaibook/ref/print-debug.md
Normal file
16
_archive/rhai_engine/rhaibook/ref/print-debug.md
Normal file
@@ -0,0 +1,16 @@
|
||||
`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
|
||||
```
|
Reference in New Issue
Block a user