Netscript Miscellaneous

Comments
Netscript supports comments using the same syntax as Javascript comments. Comments are used to document and/or explain code.

Example:

Javascript Math Module
The Javascript Math Module is supported in Netscript and is used the same way:

Example:

Javascript Date Module
The Javascript Date module is supported in Netscript. However, since the 'new' operator does not work in Netscript, only the Date module's static functions can be used:


 * now
 * UTC
 * Parse
 * Maybe some others I don't know about

Example: