This documentation is archived and is not being maintained.


Enables print command.

/print[+ | -]


+ | -
By default, /print or /print+ causes the compiler to enable the use of the print statement. An example of a print statement is,
print("hello world"); 

Specifying /print- will disable the print command.


You would use /print- if your .dll will be loaded into an environment that doesn't have a console.

You can set Microsoft.JScript.ScriptStream.Out to be an instance of a TextWriter object to enable print to send output elsewhere.


Cause the print statement to not be defined by the compiler:

jsc /print- test.js

See Also

JScript Compiler Options