+ 1
How to do the cleaning
I was sitting and making my own mini-site, well, just for myself, but how did I need to clean up the console? I tried to do it through "console.log('\n'.repeat(999));" but it clears only the bottom text and not the top, and that's why I'm here! (The "console.clear()" command is not suitable!!!)
6 Answers
+ 3
Hi, Bob_Li! I think he was referring to clearing the browser console (in developer mode). I did some research today and found that there is no definitive solution. Different browsers clear their console in different ways š¤·āāļøš¤
+ 2
Yaroslav Vernigora
you might be right. I was thinking of NodeJS.
if it's the developer mode, the browser console usually have a trash icon you can click to clear the console.
or it can be programmatically cleared by adding
console.clear();
to your code.
+ 1
ŠŃŠøŃŃŠŗŠ° ŠŗŠ¾Š½ŃŠ¾Š»Šø Š±ŃŠ°ŃŠ·ŠµŃŠ°
https://inspirnathan.com/posts/116-console-clear
https://stackoverflow.com/questions/31261667/how-to-clear-the-javascript-console-programmatically
+ 1
mac:
keyboard shortcut: Command + K
or type clear press enter
linux:
keyboard shortcut: Ctrl + L
or type clear press enter
windows:
type cls press enter
you can't clear the "console" in Sololearn, though, because it's a fake one.
0
ŠŠ¾Š¾ ŃŃŃŃŠŗŠøŠ¹



