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.
Type console.clear() into the console.
console.clear()
The command will fail with an appropriate error if you enabled the option "preserve log".
2.1m questions
2.1m answers
60 comments
57.0k users