Skip to main content

console.writeLine(object, color?)

Writes the target object with the respective console color and one extra line.

Status: unstable
Returns: void

Parameters

NameTypeDescription
objectanyThe object to be displayed on the screen
colorConsoleColorThe output color

Example usage

console.writeLine("Hello World!");
console.writeLine("Hello World!", "Magenta");

Extra behaviors

  • All console.log extra behaviors