console.write(object, color?)
Writes the target object with the respective console color.
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.write("Hello World!");
console.write("Hello World!", "Magenta");
Extra behaviors
- All
console.log
extra behaviors