console.clear() js code example
Example 1: console.clear js
The console.clear() method clears the console if the environment allows it.
Example 2: clear console javascript
console.clear();
Example 3: javascript clear console
If you type "clear()" into the browser console it clears it.