Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
If you type clear() into the console it clears it. I don't think there is a way to programmatically do it, as it could be misused. (console is cleared by some web page, end user can't access error information) one possible workaround: in the console type window.clear = clear, then you'll be able to use clear in any script on your page. Rock the code🤟🤟
29th May 2020, 2:50 AM
Piyush
Piyush - avatar