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
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 à 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