method Console.clearConsole.clear(): voidClears the console if the environment allows it ExamplesExample 1 console.clear(); Return Typevoid