writeln

fun writeln(vararg text: String)(source)

The writeln() method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character.

MDN Reference