Login

Fancade Wiki

Updated Introduction to Editor Scripting.md (markdown)

... ...
@@ -96,7 +96,7 @@ for (let index of myBlocks) {
96 96
```
97 97
This time, the line starts with a `for` loop expression. Inside this expression, we create a variable `index` and assign it to each index in the array. The code inside the curly braces will then be repeated for each new index. This is similar to using a [[Loop]] block with the array length as input.
98 98
99
Take note that there are also other kinds of loop iterators. In our example we have used the [for...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration) loop.
99
Take note that there are also other kinds of loop iterators. In our example, we have used a [for...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration) statement.
100 100
101 101
## [๐Ÿ–‡](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures/#Objects)Objects
102 102
```js
Fancade Wiki