注释是在解析之前从源代码中直接删除,还是可以算作换行符并在某些情况下破坏连续性?
'foo'.replace(/f/, 'b') //f->b
.replace(/o/, 'a') //o->a
.replace(/o/, 'r') /*o->r*/ ;
'foo'.replace(/x/, /*matches "x"*/ 'y');
var foo = ( true !== false ) ? // bikeshed
'bar' : /*if they're equal, which they won't be, we'll want 'baz'*/ 'baz';
你知道,因为他们说空格是“安全的”和“微不足道的”或其他什么,但我们都知道有例外。评论真的安全吗?