Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

176
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda