clear screen js code example
Example 1: console.clear js
The console.clear() method clears the console if the environment allows it.
Example 2: clear screen in js
document.writeln();
// ------------------------------ OR ------------------------------
document.write();