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

290
Vistas
How can I see which variables are specifically in memory used by JavaScript through devtools (chrome, Edge, etc.)?

Is this possible? I only want to see if x variable is in memory or not (I don't want to see the total memory usage, etc.), for example, I want that when pressing a button, a boolean variable is initialized, before to set that variable, obviously there is nothing in memory, but after pressing the button, it should now be in memory (and do the same in reverse), how can I see if that variable is actually in memory or not, in the development tools?

I have seen videos on YouTube that do this same exercise and simply put the name of the variable in the search filter of the memory tab (after taking a snapshot) and it appears if it is in memory or not, but when I do it the variable does not appear to me.

let myBoolean; // this can be a number, string, array, etc.

document.getElementById('add').addEventListener('click', () => {
    myBoolean = true;
});

document.getElementById('remove').addEventListener('click', () => {
    myBoolean = null;
});

enter image description here

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

0

Yes. At first, you need to run your code in the browser and create some objects. After you will be able to find it in the memory snapshot.

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