YouTip LogoYouTip

Met Console Clear

# HTML DOM console.clear() Method [![Image 3: Console Object](#) 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 | [![Image 4: Console Object](#) Console Object](#)
← Met Console ErrorObj Console β†’