clear

abstract fun clear()(source)

The console.clear() static method clears the console if possible.

MDN Reference