I am trying to write an example for console.clear() method from console module of node.js
I have searched for it all across stackoverflow but is not able to find anything relevant.
console.log("Content printed in file");
console.clear();
P.S : I am not looking for a way to erase the content from console. I am aware that it can be achieved. I just want a simple example of how console.clear() method works.
Thanks.