{"id":3105,"date":"2020-01-05T17:32:24","date_gmt":"2020-01-05T17:32:24","guid":{"rendered":"https:\/\/www.itersdesktop.com\/?p=3105"},"modified":"2020-01-12T12:00:06","modified_gmt":"2020-01-12T12:00:06","slug":"how-to-use-console-table","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/fr\/2020\/01\/05\/how-to-use-console-table\/","title":{"rendered":"How to use console dot table in Console"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>As a programmer, being aware of debug tools is vital. I am pretty sure every single Javascript programmer should be familiar with the Console tab in DevTool panel of Web Browser. However, have you ever tried console.table() yet?<\/p>\n<p>Let&rsquo;s see an example shown in the screenshot below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"177\" src=\"https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2020\/01\/js_console_table-1024x177.png\" alt=\"Result of using console.table function\" class=\"wp-image-3106\" srcset=\"https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2020\/01\/js_console_table-1024x177.png 1024w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2020\/01\/js_console_table-300x52.png 300w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2020\/01\/js_console_table-768x133.png 768w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2020\/01\/js_console_table-1536x265.png 1536w, https:\/\/www.itersdesktop.com\/wp-content\/uploads\/2020\/01\/js_console_table.png 1893w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Result of using console.table function<\/figcaption><\/figure>\n<\/div><\/div>\n\n\n\n<p> This utility comes in handy to display a JSON string as the table. <\/p>\n\n\n\n<p>Ref:  <a href=\"https:\/\/levelup.gitconnected.com\/javascript-console-debugging-beyond-the-basics-90b1d14b888a\">https:\/\/levelup.gitconnected.com\/javascript-console-debugging-beyond-the-basics-90b1d14b888a<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post shows how to use console.table to display a JSON data as the table in DevTool panel in Console tab<\/p>\n","protected":false},"author":2,"featured_media":3110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[641,133,4],"tags":[684,685],"class_list":["post-3105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-jquery","category-web-engineering","tag-console","tag-table"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/3105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/comments?post=3105"}],"version-history":[{"count":3,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/3105\/revisions"}],"predecessor-version":[{"id":3115,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/3105\/revisions\/3115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/media\/3110"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/media?parent=3105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/categories?post=3105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/tags?post=3105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}