Use the short cut Ctrl + L to clear the console. Use the clear log button on the top left corner of the chrome dev tools console to clear the console. On MacOS you can use Command + K button.
Console clear() The clear() method clears the console. The clear() method also write "Console was cleared" in the console.
If you just want to clear the console log (not the commands), just press Ctrl + L .
The console. clear() method clears the console if the console allows it. A graphical console, like those running on browsers, will allow it; a console displaying on the terminal, like the one running on Node, will not support it, and will have no effect (and no error).
I want to clear the Firebug console of the JavaScript already sent.
Does something like console.clear()
exist and work?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With