Updated Introduction to Editor Scripting.md (markdown)
commited
commit
63f8a1adf984ece17b822c2ccb55a5c2debae44a
... | ... | @@ -96,6 +96,8 @@ for (let index in 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#for...of_statement) loop. |
|
100 | ||
99 | 101 | ## [๐](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#objects)Objects |
100 | 102 | ```js |
101 | 103 | // Create an empty object |