I am working on a MVC application, and would like some code in JavaScript to run only if I am in debug mode. I do not want that code to run when I release the code.
In other words, is there anything similar to the following code in C#, for javascript / jQuery?
#if (DEBUG)
// debugging code block here
#else
// release code block here
#endif
following code in C# for javascriptsome code in javascriptWhich language?! Above snippet looks fine...