HTML DOM writeln()
The writeln() method method helps create a document, adding a new line after each statement. It's like the document.write() method.
Syntax:
document.writeln( exp1, exp2, exp3, ... )
Parameters: This approach has various optional elements called parameters. All the provided expression arguments (like exp1, exp2, etc.) can be shown in the sequence they appear.