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

16 lines
373 B
ReStructuredText
Raw Normal View History

print() Netscript Function
===========================
.. js:function:: print(args...)
:RAM cost: 0 GB
:param args: Values to be printed.
Prints any number of values 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.
print({a:5}); // Prints '{"a":5}' in the logs.