Author: Tan Zhenyang
Instructions
As you can see, JStudio's interface is very intuitive - a monitor and keyboard. The monitor has two modes, one for displaying code and the other for displaying output. You can click on the monitor to switch modes.
A great feature of JStudio is the pointer tracking view - you can move the pointer to browse different views - just like your smart eye!
Another point is that the output of JS code in JStudio is a little different: you need to use the built-in methods echo(data, flags = echoOps.W) and clearEcho() to output and clear. Of course, you can also use the input((data) => { ... }) method to accept user input.
For more functions, please see below - Special Keys!
Special keys
There are many special keys in JStudio, which are distributed on various pages of the keyboard. Here are the names and explanations of all the special keys:
Function keys
PP: Previous Page, keyboard only
NP: Next Page, keyboard only
BP: Backspace
B2: Long backspace
PL: Move the pointer left
PR: Move the pointer right
JL: pointer jumps left
JR: Pointer jumps right
LU: case conversion, operating on the character before the pointer
CN: Chinese character input, the Chinese character identifier before the operation pointer, such as .tan10 (.[pinyin][serial number], matching the pinyin table)
OP: Operator conversion, the character before the pointer
SV: Save File
SY: Archive files
C2: Clear output area
GO: Execute
escape key
WS: Space
WP: Line Break
BS: Backslash \
CQ: Double quotes "
SQ: single quote '
Condensation key
EC: echo()
EO: echoOps.
CE: clearEcho()
RO: Reflect.ownKeys()
Built-in API
Here is a list of APIs built into the JStudio runtime environment:
echo(data, flags = echoOps.W): Output data (enumerate the value list of echoOps: W (newline after output), P (output object prototype member), L (output long text), F (output function content))
clearEcho(): Clear the output area
input((data) => { ... }): accepts user input
cn(pinyin): query the Chinese character sequence table based on the given pinyin from the pinyin table
pinyin: Pinyin table