Categories

Neat Little Comment Trick

Hopefully this post will save someone else a bit of time just like it did for me… I stumbled across a trick for commenting out various blocks of code (typically used for debugging). By using a combination of the multi-line and single line comments, you can quickly comment/uncomment code.

/*
alert(‘error’);
//*/

By setting up your comments like this, you [...]