views:

499

answers:

1

Sometimes I see @cc_on in JavaScript. What does it mean?

+10  A: 

It's for conditional compilation. Seems to be a feature of Microsoft's "JScript" ECMAScript implementation.

unwind
Not IE but JScript (ECMAScript implementation used in IE). This is important because JScript, for example, is also used in ASP, Windows Script Host, etc. See http://en.wikipedia.org/wiki/JScript
kangax
@kangax: Thanks, updated the answer.
unwind