Is there a way that I can define a macro similar to C/C++ macros in Javascript?
I want to use this for debug statements: Something like
#ifdef TEST
Javascript has no macros since there is no compiler. You could use console.log and write a regex to strip those statements when deploying.
console.log