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

135
Views
JavaScript console showing a different console output
const firstLi = document.querySelector('li:first-child');
console.log(firstLi)

Every time I save(Command + S), the web console side shows a different output randomly.

enter image description here The longer one

<li class="collective-item>...</li>

enter image description here The shorter one

li.collective-item

How do I edit the setting to show a consistent console output preferably the longer one? Because I would like to see the code structure(the longer one) not the whole list of methods(the shorter one).

And why does this show a different output randomly on JavaScript web console?

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!