When to use console.clear?

4

I was working on my website and installed a plugin, unfortunately the same did not load according to the page, giving several warnings on the console, for each product a warning, ie more than 100 warnings (warnings, not errors), I used console.clear to eliminate these warnings. Home Having trouble doing this?
When should I use console.clear?

    
asked by anonymous 12.01.2017 / 14:36

1 answer

6

console.clear is used to clear console messages, which are usually written with console.log .

It aims to make it easier to read LOG information in a development / test environment, code debugging, when there is a lot of unnecessary, clean up and then write the new information.

There's no problem cleaning up.

Just be careful that console.clear does not get in the way when you want to debug anything. That is, do not wipe messages you want to see.

    
12.01.2017 / 14:41