console.clear()

console.clear() 메서드는 현재 환경에서 가능한 경우, 콘솔에 기록된 메시지를 모두 지웁니다.

구문

js
console.clear();

명세

Specification
Console Standard
# clear

브라우저 호환성

BCD tables only load in the browser