Best of LoggingNovember 2020

  1. 1
    Article
    Avatar of hashnodeHashnode·6y

    10 best JavaScript practices recommended by Top Developers

    JavaScript is a little different to other programming languages. Here are some of the practises I and several other senior developers follow. If you have recently started learning JavaScript or a beginner I would highly recommend you to read the complete article so that you follow better practises while coding in JavaScript.

  2. 2
    Article
    Avatar of hashnodeHashnode·6y

    Use console.log() like a pro!

    The console object provides access to the browser’s debugging console. The specifics of how it works varies from browser to browser, but there is a de facto set of features that are typically provided. The console.log output can be styled in DevTools using the CSS format specifier.

  3. 3
    Article
    Avatar of devtoDEV·6y

    Level up your JavaScript browser logs with these console.log() tips

    Firecode.io is a free, open-source web app that lets developers test and test again their code. One of Firecode’s core features is a built-in logging tool called console.log() that can be used to monitor, troubleshoot, and debug your applications. In this article, we look at some tips and tricks for frontend logging in the browser.

  4. 4
    Article
    Avatar of hashnodeHashnode·6y

    The Lifecycle of React Hooks Component

    Every component has three phases:Mount Update Unmount - Hooks Flow. Mount is when the component initially mounts on a page. Unmount is when it updates. Cleanup is when component unmounts from the page. In this stage, the flow of hooks is as follows: render, run and cleanup.

  5. 5
    Article
    Avatar of flaviocopesFlavio Copes·6y

    Data structures in JavaScript: Dictionaries

    ES6 introduced the Map data structure, providing us a proper tool to handle this kind of data organization. What is a Map? It's a data structure that allows to associate data to a key. A WeakMap is a special kind of Map that lets all its items be freely collected.

  6. 6
    Article
    Avatar of hashnodeHashnode·6y

    JavaScript console API

    console.count() will count the number of times this statement will be called with the label that is been passed. console.clear() is used to clear the console. The error message will be highlighted with a red color by default. Console.table() allows us to generate a table inside a console. Whenever we want to know the amount of time spent on a specific block of code, we can use the time() and time() methods.