Quick question. I just came across the following in a JS file:
if (0) {
// code
}
What's the purpose of this if statement? Which cases would the code execute? It currently doesn't run the code in the if clause.
It looks like an artifact of the development process. Wrapping code like that gives you a quick, 1-character way to effectively comment out a block of code. It's quicker to toggle than a typical multi-line comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With