You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/website/javascript.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ hide_table_of_contents: true
14
14
15
15
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.
16
16
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).
18
18
19
19
If you want to convert Scratch projects to readable and editable JavaScript, use https://leopardjs.com/
0 commit comments