Created
April 3, 2018 15:16
-
-
Save kentcdodds/b5ad7017ae952ad214fb1bc4787fc580 to your computer and use it in GitHub Desktop.
A handy trick with multiline code comments I learned from Matt Zabriskie
This file contains 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
// here's a handy trick: | |
/* | |
console.log('any code') | |
/**/ | |
// It takes just one character change | |
// to uncomment out all the code above: | |
//* | |
console.log('any code') | |
/**/ | |
// Photo by Kafai Liu on Unsplash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment