puter.print()


Prints a string by appending it to the body of the document. This is useful for debugging and testing purposes and is not recommended for production use.

Syntax

puter.print(text);

Parameters

text (String)

The text to print.

Examples

Print "Hello, world!"

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.print("Hello, world!");
    </script>
</body>
</html>