Created
March 26, 2016 21:19
-
-
Save vandorjw/1bb024542f9edfb574f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // oops, this would throw an error! | |
| if (DEBUG) { | |
| console.log( "Debugging is starting" ); | |
| } | |
| // this is a safe existence check | |
| if (typeof DEBUG !== "undefined") { | |
| console.log( "Debugging is starting" ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment