Nation
Nation

Reputation: 506

Clear console output using Node.js

I am trying to create a time display (h:mm:ss) with just using the console and not on a web page. The time should be set initially and from there display the time as it changes.

When using the output console (in the web browser) or in vscode, is it possible for js or node.js to clear the console or the outputs in the console without using an extension?

Upvotes: 1

Views: 374

Answers (1)

Aplet123
Aplet123

Reputation: 35522

Yes, with the aptly named console.clear function.

Upvotes: 4

Related Questions