Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda