JScript .NET, Part II: Major Features
print() function to send a string to the console, followed by a newline character. The
jsc.exe. The print statement takes a single string as a parameter and displays it to the console. For example, the line:
"Hello World!" to the console. You can use escape sequences to specify actions such as carriage returns and tab movement. Escape sequences are character combinations consisting of a backslash (
\) followed by a letter or by a combination of digits. The combination
"\n" is new line. The combination
"\t" is tab.
jsc.exe. You can disable it by using the
/print- option. When there is no console to print to (for example, Windows GUI), the print statement will silently fail. Output from the
"\r" combination at the end of each printed line. It does not affect the way lines are displayed on the console.
print("Student: \t" + student + "\nGrade: \t" + grade);
will yield the following console output:
Student: John Grade: 98
Next: How to define classes