console.writeLine(object, color?)
Writes the target object with the respective console color and one extra line.
Status: unstable
Returns: void
Parameters
| Name | Type | Description |
|---|---|---|
| object | any | The object to be displayed on the screen |
| color | ConsoleColor | The output color |
Example usage
console.writeLine("Hello World!");
console.writeLine("Hello World!", "Magenta");
Extra behaviors
- All
console.logextra behaviors