Skip to main content
Version: 3.27.2

console.clear()

The console.clear() method clears the console if the console allows it.

Syntax

clear()

Parameters

None.

Return value

undefined.