In this video we take a look at the potential alternative to the beloved console.log() method in JavaScript - this is the console.table() method used for visualising your arrays and objects in a format of a table!
Rather than displaying objects and arrays in a traditional expandable component, console.table() shows a visual table instead, making it easy to see smaller sized data collections.
As of right now I believe this method only works on objects and arrays but please let me know in the comments if it has worked for you on other types (or in other browsers).
Support me on Patreon:
/ dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
For your reference, check this out:
https://developer.mozilla.org/en-US/d...
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Sur cette page du site, vous pouvez voir la vidéo en ligne Debug your JavaScript code visually with console.table - JavaScript Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur dcode 24 août 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,128 fois et il a aimé 69 téléspectateurs. Bon visionnage!