Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!