The writeln() method is used to write a document with additional property of newline character after each statement. This method is similar to the document.write() method.
document.writeln( exp1, exp2, exp3, ... )
Parameters: This method contain many parameters which is optional. All the expression arguments (exp1, exp2, …) can be listed and display with the order of occurrence.
Supported Browsers: The browser supported by writeln() method are listed below:
- Internet Explorer