Chapter 1 - adishap/advanced-JS-console-logging GitHub Wiki

Log Levels and Semantic Methods

  • console.log("Hello World"); //Hello World
  • console.warn("Hello World"); //Hello World
  • using this we can gave warning we might change it or depricate this
  • console.error("Hello World"); //Hello World
  • something wrong..step in and find things went wrong..start debugging
  • console.info("Hello World"); //Hello World
  • gave info..something happened
  • console.debug()
  • similar to log but in blue...helpful and used for large apps and debug a application feature bug ..delete after use..

can filter and refine.. can help you and others to refer to other developers and ur futureself..in case of updation of version, or debugging in future..

⚠️ **GitHub.com Fallback** ⚠️