In my example, debug is used for demonstration purposes as a placeholder for whatever condition you use to log.
debug
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.
Gotcha, thanks David for elaborating :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
Gotcha, thanks David for elaborating :)