Changes between Version 2 and Version 3 of JSC
- Timestamp:
- Jul 1, 2009 4:06:41 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JSC
v2 v3 17 17 18 18 === Built-In Functions === 19 {{{quit()}}}:: 20 Quit the interpreter 21 {{{load('[FileName]')}}}:: 22 Load and execute the specified external JavaScript file 'FileName'. If the run is successful, it will return the final value of the script. 19 {{{checkSyntax('[FileName]')}}}:: 20 Check the syntax of the specified external JavaScript file {{{[FileName]}}}. 21 {{{debug(term)}}}:: 22 Prints a human-readable version of the passed argument. 23 {{{gc()}}}:: 24 Perform a garbage collection. It will return {{{undefined}}}. 25 {{{load('[FileName]')}}}:: 26 Load and execute the specified external JavaScript file {{{[FileName]}}}. If the run is successful, it will return the final value of the script. 27 {{{quit()}}}:: 28 Quit the interpreter 29 {{{readline()}}}:: 30 Read data from stdin. Mainly useful for writing test routines. 23 31 {{{run('[FileName]')}}}:: 24 Load and execute the specified external JavaScript file 'FileName'. If the run is successful, it will return the elapsed milliseconds for the run. 32 Load and execute the specified external JavaScript file {{{[FileName]}}}. If the run is successful, it will return the elapsed milliseconds for the run. 33 {{{version()}}}:: 34 Currently does nothing. It will return {{{undefined}}}. 25 35 26 36 … … 41 51 > 15.3 / 18 * 27.1 * (Math.ceil(1.3) * Math.exp(2.3) * Math.log (1.223) * Math.sin(32.22)) 42 52 66.6192983328985 43 > 53 > quit() 44 54 }}} 45 55 … … 50 60 > add3(3) 51 61 6 52 > 62 > var foo = readline(); 63 abcdefg 64 undefined 65 > foo 66 abcdefg 67 > quit() 53 68 }}} 54 69