Skip to main content

console.write(object, color?)

Writes the target object with the respective console color.

Status: unstable
Returns: void

Parameters​

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

Example usage​

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

Extra behaviors​

  • All console.log extra behaviors