Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
get "clear is not a function" from console on chrome dev tool

I hope anyone could help me understand this situation.
So, I wanted to clear the console after trying some simple codes like...

const smt = {printThis(){console.log(this)}};
smt.printThis();

and then typed clear as always, to clear it.

But then got this error saying clear is not a function.
And when typed clear and pressed enter, it shows tag. ...?

I really want to know what this is about, and hopefully, someone knows about it.
Just in case it's already been asked here, really sorry if my searching wasn't enough.

clearIsNotAFunction

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

On that page, as you show, there is an element with id="clear". Elements with ids automatically create global variables pointing to them with the name of that variable being that id, so clear() in your console is trying to run the element, which leads to your error.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!