Languages
[Edit]
EN

JavaScript - how to clear console?

5 points
Created by:
AnnLen
13540

In JavaScript console supports different ways for printing data. It is possible to clear console too. In this article the way how to clear console has been shown.

1. Clear console operation example

// ONLINE-RUNNER:browser;

console.log('Console message 1');
console.log('Console message 2');
console.log('Console message 3');
console.log('Console message 4');

console.clear();

console.log('Console message 5');
console.log('Console message 6');
console.log('Console message 7');
console.log('Console message 8');

 

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join