GeeksforGeeks

DOM console.clear() Method

To view the message in the console press the F12 key on your keyboard.

To clear the console, double click the button below: