vineel
vineel

Reputation: 3683

Google Chrome Dev Tools console "undefined" message upon typing the clear() function

I am getting an "undefined" message upon typing the clear() function in google chrome console.

Upvotes: 1

Views: 465

Answers (1)

vineel
vineel

Reputation: 3683

clear() function will not work when preserve log is enabled.
We need to uncheck the option "Preserve Log" on console tab
(or)
go to settings -> general -> console -> uncheck "Preserve log upon navigation".

Upvotes: 1

Related Questions