W3Teacher
  • Explore
    Browse by field
    Artificial Intelligence Accounting & Finance Information Technology
    Show all fields
  • Interview Q&A
    • All Interview Questions
    • Beginner
    • Intermediate
    • Advanced
  • Practice
    • MCQs
    • Quizzes
    • Mock Interviews
  • About
  • Sign in
  • Get Started
  1. Home
  2. Search: Debugging
  3. JavaScript
  4. Debugging, Testing & Tooling
  5. Question
All 10 Debugging, Testing & Tooling questions
More in Debugging, Testing & Tooling
How do you pause code execution at a specific line using the browser DevTools? What is a unit test and what makes a good one? How does Jest's mocking help isolate the code under test? What is code coverage and why isn't 100% coverage the same as bug-free code? How does source mapping help when debugging minified or transpiled code? How do you write an effective test for asynchronous code? What is snapshot testing and what's a common pitfall with it? How does the Performance panel in DevTools help diagnose a janky UI? What's the difference between end-to-end (E2E) tests and unit tests, and when do you use each?
Advertisement
Back to results for “Debugging”
JavaScript › Debugging, Testing & Tooling

What is console.table() useful for?

Beginner

Answer

console.table() renders an array of objects as a formatted table in the console, making it much easier to scan rows and columns than reading nested console.log() output.
console.table([
  { name: 'Sam', age: 30 },
  { name: 'Alex', age: 25 }
]);
Real-world example Quickly inspecting an array of API results without writing custom formatting code.

Common follow-ups: What other lesser-known console methods exist, like console.group()?

Arrays & Array Methods
Previous question How do you pause code execution at a specific line using the browser DevTools? Next question What is a unit test and what makes a good one?
All 10 Debugging, Testing & Tooling questions
W3Teacher

Learn technologies. Ace technical interviews.


    Learn
    • Technologies
    • Tutorials
    • Interview Questions
    • MCQs
    Practice
    • Quizzes
    • Mock Interviews
    • Bookmarks
    • Dashboard
    Get the latest questions & tips

    Fresh interview questions and practice tips, straight to your inbox.

    Company
    • About
    • Contact us
    • Privacy Policy
    • Terms & Conditions

    © 2026 W3Teacher. All rights reserved.