Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
custom:javascript [2019/07/26 18:05] – [Output] Created Input and Prompt sections with beginning tables (need work) digital man | custom:javascript [2021/02/03 20:09] – [About] fix mozilla links mlong |
---|
| |
You can learn about the core JavaScript language and object model from the following documents: | You can learn about the core JavaScript language and object model from the following documents: |
* [[http://developer.mozilla.org/en/JavaScript/Guide|Core JavaScript Guide]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Guide|Historic: 1.5]]) | * [[https://developer.mozilla.org/en-US/docs/Web/JavaScript|Core JavaScript Guide]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Guide|Historic: 1.5]]) |
* [[http://developer.mozilla.org/en/JavaScript/Reference|Core JavaScript Reference]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Reference|Historic: 1.5]]) | * [[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference|Core JavaScript Reference]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Reference|Historic: 1.5]]) |
| |
JavaScript is an established, mature scripting language syntactically similar to C++ and Java. | JavaScript is an established, mature scripting language syntactically similar to C++ and Java. |
| |
^ Method ^ BBS((Terminal Server)) ^ JSexec ^ Notes ^ | ^ Method ^ BBS((Terminal Server)) ^ JSexec ^ Notes ^ |
| ''read()'' | Yes | Yes | | | | ''read()'' | Yes | Yes | Read up to maxlen (default 128) characters of input | |
| ''readln()'' | Yes | Yes | | | | ''readln()'' | Yes | Yes | Read a string (line of input) from user, up to maxlen chars (default: 128) | |
| ''console.getstr()'' | Yes | No | | | | ''console.inkey()'' | Yes | No | Wait for a key-press or an elapsed timeout duration | |
| ''console.getkey()'' | Yes | No | | | | ''console.getstr()'' | Yes | No | Get a string of characters from user | |
| ''console.getbyte()'' | Yes | No | | | | ''console.getkey()'' | Yes | No | Get a single key-press | |
| ''console.getnum()'' | Yes | No | | | | ''console.getbyte()'' | Yes | No | Get a unprocessed input byte from remote terminal | |
| ''console.getkeys()'' | Yes | No | | | | ''console.getnum()'' | Yes | No | Get a number (between 1 and maxnum) from user | |
| ''console.gettemplate()'' | Yes | No | | | | ''console.getkeys()'' | Yes | No | Get a key from a list of valid keys, or a number | |
| | ''console.gettemplate()'' | Yes | No | Get a string conforming to a provided input template | |
| |
==== Prompt ==== | ==== Prompt ==== |