DEV Community

Discussion on: Remove all console.log()s using Regex in Atom

Collapse
 
ghost profile image
Ghost

In my example, debug is used for demonstration purposes as a placeholder for whatever condition you use to log.

For instance, let's say if the global variable debug is set to true, then the script in question should log as much as possible, else it shouldn't.

Full Disclosure: I am primarily a .NET developer and only have limited experience with JS.

Thread Thread
 
michael profile image
Michael Lee 🍕

Gotcha, thanks David for elaborating :)