console.clear() method clears the console and leaves a message "Console was cleared".
Note: In Google Chrome, console.clear() has no effect if the user has selected "Preserve log upon navigation" in the settings.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.