bitburner-src/doc/source/netscript/basicfunctions/print.rst

15 lines
309 B
ReStructuredText
Raw Normal View History

print() Netscript Function
===========================
.. js:function:: print(x)
:RAM cost: 0 GB
2021-03-12 08:51:56 +01:00
:param x: Value to be printed.
Prints a value or a variable to the script's logs.
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
print("Hello world!"); // Prints "Hello world!" in the logs.