Skip to content

Commit 3903299

Browse files
committed
update JS page
1 parent cbeb908 commit 3903299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/website/javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ hide_table_of_contents: true
1414

1515
The code generated by TurboWarp is not designed to be read or edited by humans. Attempting to do so would be actively harmful to one's learning because of the many unusual things done to improve compatibility or performance.
1616

17-
For example, in regular JavaScript accessing a list item is as simple as `myList[myIndex]`, but TurboWarp does `(b1.value[(b0.value | 0) - 1] ?? "")` or `listGet(b0, b1.value)` depending on what assumptions it can make. `b0` and `b1` are real variable names that TurboWarp will use and `listGet` is a magic function that's part of the TurboWarp runtime. The code also lacks any formatting. Some more code samples are available in [another page](how).
17+
For example, in regular JavaScript accessing a list item is as simple as `myList[myIndex]`, but TurboWarp could do anything from `(b1.value[(b0.value | 0) - 1] ?? "")` to `listGet(b0, b1.value)` depending on the context around the list block. `b0` and `b1` are real variable names that TurboWarp will use and `listGet` is a part of the TurboWarp runtime, not part of the JavaScript standard. The code also lacks any formatting. Some more code samples are available in [another page](how).
1818

1919
If you want to convert Scratch projects to readable and editable JavaScript, use https://leopardjs.com/
2020

0 commit comments

Comments
 (0)