1.

What is the significance of the JavaScript logging library loglevel?(a) Lightweight(b) Unreliable(c) Minimal usage(d) InconvenientThe question was posed to me by my school principal while I was bunking the class.The above asked question is from Remote Logging in section Parsing, Benchmarking and Logging of JavaScript

Answer»

Correct option is (a) Lightweight

To explain: loglevel is a lightweight, minimal and convenient JavaScript logging library which provides a reliable and extremely easy-to-use layer over the various console.log() methods that are often AVAILABLE, with none of their DOWNSIDES. loglevel MAKES these methods safe to use by GRACEFULLY handling the cases where they don’t exist and also lets you FILTER the output of these, to only show messages at warn level or above.



Discussion

No Comment Found

Related InterviewSolutions