This method is used to write a document with addition property of newline character after each statement. This method is similar to 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 order of occurrence.
Supported Browsers: The browser supported by writeln() method are listed below:
- Internet Explorer