luhook04
luhook04

Reputation: 21

My clear() command not working in Google Chrome JavaScript console

Every time I run the clear() command to clear space in my JavaScript console on Chrome, I run into the following error: VM229:1 Uncaught TypeError: clear is not a function at :1:1 I'm aware that there are other ways to clear the console, but I'm wondering at what I'm doing wrong or if I have a weird setting enabled.

Upvotes: 1

Views: 3192

Answers (1)

Sebastian S.
Sebastian S.

Reputation: 1391

Type console.clear() into the console.

The command will fail with an appropriate error if you enabled the option "preserve log".

Upvotes: 1

Related Questions