how to clear console code example
Example 1: clear console javascript
console.clear();
Example 2: javascript clear console
If you type "clear()" into the browser console it clears it.
console.clear();
If you type "clear()" into the browser console it clears it.