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

18 lines
491 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
2023-01-06 13:43:09 +01:00
ns.print("Hello world!"); // Prints "Hello world!" in the logs.
ns.print({a:5}); // Prints '{"a":5}' in the logs.
const text = "can"
ns.print("I "+ text +" use variables :)") // Prints "I can use variables :)"