/dev tips

(81) Hover over a selector to reveal matching elements Speed insights with console.time (83)

Chrome DevTools: Better logging of objects and arrays with console.table

17 Nov 2015
Better logging of objects and arrays with console.table

The table method on the console object provides a tabular view of the data you pass to it. Try it out with the following:

var languages = [
    { name: "JavaScript", fileExtension: ".js" },
    { name: "TypeScript", fileExtension: ".ts" },
    { name: "CoffeeScript", fileExtension: ".coffee" }
];

console.log(languages);

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.