Met Console Clear
# HTML DOM console.clear() Method
[ Console Object](#)
## Example
Clear all information on the console:
console.clear();
[Try it Β»](#)
* * *
## Definition and Usage
The console.clear() method is used to clear all information from the console.
After successful execution, the console.clear() method outputs: "Console was cleared" to the console.
* * *
## Syntax
console.clear()
* * *
## Browser Support
The numbers in the table indicate the first browser version that fully supports the method.
| Method | | | | | |
| --- | --- | --- | --- | --- | --- |
| console.clear() | Yes | Yes | 48 | Yes | Yes |
[ Console Object](#)
YouTip