Languages
[Edit]
EN

JavaScript - how to clear console?

5 points
Created by:
AnnLen
1885

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
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join