Computer >> Computer tutorials >  >> Programming >> Javascript

How to Clear the JavaScript Console in Google Chrome


Sometimes you have a lot of commands and logs printed in the browser console and want to clear it. There are multiple ways to do this in chrome.

  • Use console.clear() method. This method clears the console and displays console was cleared message.

  • 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.