2

I am a beginner in web. I am using chrome for debugging,

  • ctrl+l clears the console screen
  • console.clear just returns the following message

Console was cleared

What is the difference between these two,whether they are for same purpose or different purpose.

Venkat
  • 2,549
  • 2
  • 28
  • 61

1 Answers1

0

console.clear() and ctrl+l both are doing the same work and ctrl+l is a shortcut for clearing the console.

control.clear() clears the console screen when preserve log option is unchecked.

Venkat
  • 2,549
  • 2
  • 28
  • 61