17 lines
362 B
Markdown
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
|
|
```
|