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

178
Vistas
Array is empty but not anymore when opened in node.js

i will create array and i thought that is success created but that array not normal display when i consle the array.

My code is :

var post = [
  RowDataPacket {
 date: 2022-03-01T23:39:17.000Z,
    id: 30,
    post_id: 467,
    sender_id: 31,
    cum_id: 31,
    content: '<p>Many developers still use the log method to debug their application. For example, to make sure that the code goes somewhere or that a variable has the right value at a given time.</p><p>There are several downsides to this.</p><p>You have no view on the whole life cycle of your application, only on the value of a variable at a given time or the assurance or not that your code is following its logical flow.</p><p>It often happens that console.log are forgotten in several places in the code, which besides a hypothetical loss of performance (tiny, but whose size varies according to the data called through the log method), is not very clean.</p>',
   
  },
  RowDataPacket {
    date: 2022-03-01T23:39:17.000Z,
    id: 31,
    post_id: 468,
    sender_id: 31,
    cum_id: 31,
    content: '<p>Many developers still use the log method to debug their application. For example, to make sure that the code goes somewhere or that a variable has the right value at a given time.</p><p>There are several downsides to this.</p><p>You have no view on the whole life cycle of your application, only on the value of a variable at a given time or the assurance or not that your code is following its logical flow.</p><p>It often happens that console.log are forgotten in several places in the code, which besides a hypothetical loss of performance (tiny, but whose size varies according to the data called through the log method), is not very clean.</p>',
   
   
  }
]
   var rplArrays = [];
  console.log(rplArrays);
   for(var i=0; i < post.length; i++) {  
    rplArrays.push(post[i].post_id);
} 

disply on the window like this photo..

enter image description here

when i click that arrow next to the array then that will display array information.

about 4 years ago · Juan Pablo Isaza
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