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

215
Vistas
Is there any way to manually produce an answer in a browser using JavaScript?

So I'm not 100% if the thing I'm asking for is called answer. If you open your browser's console, in any chromium-based browser it should look something like this: enter image description here

And in Firefox it looks something like this: enter image description here

It's the thing that the console writes to if you use something like document.getElementById.

Is there any way to write to said result/answer?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The arrow to the left is the console telling you that some function returned some value.

If you paste this code to the console, and then run it by typing foo() and pressing enter:

function foo() {
   return "bar"
}

It will return the string "Bar", and the icon you mentioned will appear, indicating that some function simply returned a value and did nothing with it.

Edit: As others mentioned, if you use it with console.log("foo"), the arrow will appear with undefined because the function console.log() doesnt return anything, it explicity prints on the browser's console, but doesn't return any value. Any function that doesn't return a value, the console will return back that arrow with undefined.

Edit2: A full reference of what you can do with console is here: W3Schools Console Object

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